summaryrefslogtreecommitdiffstats
path: root/tag.c
diff options
context:
space:
mode:
Diffstat (limited to 'tag.c')
-rw-r--r--tag.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tag.c b/tag.c
index a0ddb0d..0b155c0 100644
--- a/tag.c
+++ b/tag.c
@@ -84,7 +84,7 @@ isvisible(Client *c) {
84 unsigned int i; 84 unsigned int i;
85 85
86 for(i = 0; i < ntags; i++) 86 for(i = 0; i < ntags; i++)
87 if(c->tags[i] && seltag[i]) 87 if(c->tags[i] && seltags[i])
88 return True; 88 return True;
89 return False; 89 return False;
90} 90}
@@ -139,7 +139,7 @@ settags(Client *c, Client *trans) {
139 } 139 }
140 if(!matched) 140 if(!matched)
141 for(i = 0; i < ntags; i++) 141 for(i = 0; i < ntags; i++)
142 c->tags[i] = seltag[i]; 142 c->tags[i] = seltags[i];
143 persistconfig(c); 143 persistconfig(c);
144} 144}
145 145
@@ -190,10 +190,10 @@ toggleview(const char *arg) {
190 unsigned int i, j; 190 unsigned int i, j;
191 191
192 i = idxoftag(arg); 192 i = idxoftag(arg);
193 seltag[i] = !seltag[i]; 193 seltags[i] = !seltags[i];
194 for(j = 0; j < ntags && !seltag[j]; j++); 194 for(j = 0; j < ntags && !seltags[j]; j++);
195 if(j == ntags) 195 if(j == ntags)
196 seltag[i] = True; /* cannot toggle last view */ 196 seltags[i] = True; /* cannot toggle last view */
197 arrange(); 197 arrange();
198} 198}
199 199
@@ -202,9 +202,9 @@ view(const char *arg) {
202 unsigned int i; 202 unsigned int i;
203 203
204 for(i = 0; i < ntags; i++) 204 for(i = 0; i < ntags; i++)
205 seltag[i] = arg == NULL; 205 seltags[i] = arg == NULL;
206 i = idxoftag(arg); 206 i = idxoftag(arg);
207 if(i >= 0 && i < ntags) 207 if(i >= 0 && i < ntags)
208 seltag[i] = True; 208 seltags[i] = True;
209 arrange(); 209 arrange();
210} 210}