equal
deleted
inserted
replaced
82 Bool |
82 Bool |
83 isvisible(Client *c) { |
83 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 } |
91 |
91 |
92 void |
92 void |
137 if(ch.res_name) |
137 if(ch.res_name) |
138 XFree(ch.res_name); |
138 XFree(ch.res_name); |
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 |
146 void |
146 void |
147 tag(const char *arg) { |
147 tag(const char *arg) { |
188 void |
188 void |
189 toggleview(const char *arg) { |
189 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 |
200 void |
200 void |
201 view(const char *arg) { |
201 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 } |