comparison view.c @ 420:c033e1ade281

s/growcol/resizetile/g
author Anselm R. Garbe <arg@10kloc.org>
date Tue, 05 Sep 2006 13:25:42 +0200
parents 7a65674a0fd7
children 44225ee80236
comparison
equal deleted inserted replaced
419:7a65674a0fd7 420:c033e1ade281
167 focus(c); 167 focus(c);
168 restack(); 168 restack();
169 } 169 }
170 } 170 }
171 171
172 void 172 Bool
173 growcol(Arg *arg) 173 isvisible(Client *c)
174 {
175 unsigned int i;
176
177 for(i = 0; i < ntags; i++)
178 if(c->tags[i] && seltag[i])
179 return True;
180 return False;
181 }
182
183 void
184 resizetile(Arg *arg)
174 { 185 {
175 Client *c = getnext(clients); 186 Client *c = getnext(clients);
176 187
177 if(!sel || !getnext(c->next) || (arrange != dotile)) 188 if(!sel || !getnext(c->next) || (arrange != dotile))
178 return; 189 return;
185 if(mw - arg->i < 100) 196 if(mw - arg->i < 100)
186 return; 197 return;
187 mw -= arg->i; 198 mw -= arg->i;
188 } 199 }
189 arrange(NULL); 200 arrange(NULL);
190 }
191
192 Bool
193 isvisible(Client *c)
194 {
195 unsigned int i;
196
197 for(i = 0; i < ntags; i++)
198 if(c->tags[i] && seltag[i])
199 return True;
200 return False;
201 } 201 }
202 202
203 void 203 void
204 restack() 204 restack()
205 { 205 {