Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
| inline |
side by side
we don't use the term clients anymore, windows is the better term
[dwm.git]
/
view.c
diff --git
a/view.c
b/view.c
index
14cfc1d
..
baa2ac6
100644
(file)
--- a/
view.c
+++ b/
view.c
@@
-234,7
+234,8
@@
view(Arg *arg) {
for(i = 0; i < ntags; i++)
seltag[i] = (arg->i == -1) ? True : False;
- seltag[arg->i] = True;
+ if(arg->i >= 0 && arg->i < ntags)
+ seltag[arg->i] = True;
arrange();
}