Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
renamed seltag into seltags
[dwm.git]
/
tag.c
diff --git
a/tag.c
b/tag.c
index
a0ddb0d
..
0b155c0
100644
(file)
--- a/
tag.c
+++ b/
tag.c
@@
-84,7
+84,7
@@
isvisible(Client *c) {
unsigned int i;
for(i = 0; i < ntags; i++)
unsigned int i;
for(i = 0; i < ntags; i++)
- if(c->tags[i] && seltag[i])
+ if(c->tags[i] && seltag
s
[i])
return True;
return False;
}
return True;
return False;
}
@@
-139,7
+139,7
@@
settags(Client *c, Client *trans) {
}
if(!matched)
for(i = 0; i < ntags; i++)
}
if(!matched)
for(i = 0; i < ntags; i++)
- c->tags[i] = seltag[i];
+ c->tags[i] = seltag
s
[i];
persistconfig(c);
}
persistconfig(c);
}
@@
-190,10
+190,10
@@
toggleview(const char *arg) {
unsigned int i, j;
i = idxoftag(arg);
unsigned int i, j;
i = idxoftag(arg);
- seltag
[i] = !seltag
[i];
- for(j = 0; j < ntags && !seltag[j]; j++);
+ seltag
s[i] = !seltags
[i];
+ for(j = 0; j < ntags && !seltag
s
[j]; j++);
if(j == ntags)
if(j == ntags)
- seltag[i] = True; /* cannot toggle last view */
+ seltag
s
[i] = True; /* cannot toggle last view */
arrange();
}
arrange();
}
@@
-202,9
+202,9
@@
view(const char *arg) {
unsigned int i;
for(i = 0; i < ntags; i++)
unsigned int i;
for(i = 0; i < ntags; i++)
- seltag[i] = arg == NULL;
+ seltag
s
[i] = arg == NULL;
i = idxoftag(arg);
if(i >= 0 && i < ntags)
i = idxoftag(arg);
if(i >= 0 && i < ntags)
- seltag[i] = True;
+ seltag
s
[i] = True;
arrange();
}
arrange();
}