equal
deleted
inserted
replaced
181 } |
181 } |
182 |
182 |
183 void |
183 void |
184 resizecol(Arg *arg) |
184 resizecol(Arg *arg) |
185 { |
185 { |
186 Client *c = getnext(clients); |
186 unsigned int n; |
187 |
187 Client *c; |
188 if(!sel || !getnext(c->next) || (arrange != dotile)) |
188 |
189 return; |
189 for(n = 0, c = clients; c; c = c->next) |
|
190 if(isvisible(c) && !c->isfloat) |
|
191 n++; |
|
192 if(!sel || sel->isfloat || n < 2 || (arrange != dotile) || maximized) |
|
193 return; |
|
194 |
190 if(sel == getnext(clients)) { |
195 if(sel == getnext(clients)) { |
191 if(mw + arg->i > sw - 100) |
196 if(mw + arg->i > sw - 100) |
192 return; |
197 return; |
193 mw += arg->i; |
198 mw += arg->i; |
194 } |
199 } |
301 } |
306 } |
302 |
307 |
303 void |
308 void |
304 zoom(Arg *arg) |
309 zoom(Arg *arg) |
305 { |
310 { |
306 Client *c = sel; |
311 unsigned int n; |
307 |
312 Client *c; |
308 if(!c || (arrange != dotile) || c->isfloat || maximized) |
313 |
309 return; |
314 for(n = 0, c = clients; c; c = c->next) |
310 |
315 if(isvisible(c) && !c->isfloat) |
311 if(c == getnext(clients)) |
316 n++; |
|
317 if(!sel || sel->isfloat || n < 2 || (arrange != dotile) || maximized) |
|
318 return; |
|
319 |
|
320 if((c = sel) == getnext(clients)) |
312 if(!(c = getnext(c->next))) |
321 if(!(c = getnext(c->next))) |
313 return; |
322 return; |
314 detach(c); |
323 detach(c); |
315 c->next = clients; |
324 c->next = clients; |
316 clients->prev = c; |
325 clients->prev = c; |