comparison view.c @ 427:e58cd202c4e9

this makes sure the issue mentioned by sander
author Anselm R. Garbe <arg@10kloc.org>
date Tue, 05 Sep 2006 18:04:22 +0200
parents 21df917c2719
children 16f8f05f960e
comparison
equal deleted inserted replaced
426:21df917c2719 427:e58cd202c4e9
315 if(isvisible(c) && !c->isfloat) 315 if(isvisible(c) && !c->isfloat)
316 n++; 316 n++;
317 if(!sel || sel->isfloat || n < 2 || (arrange != dotile) || maximized) 317 if(!sel || sel->isfloat || n < 2 || (arrange != dotile) || maximized)
318 return; 318 return;
319 319
320 if((c = sel) == getnext(clients)) 320 /* this is somewhat tricky, it asserts to only zoom tiled clients */
321 for(c = getnext(c->next); c && c->isfloat; c = getnext(c->next)); 321 for(c = clients; c && c->isfloat; c = getnext(c->next));
322 if(c) {
323 if(c == sel)
324 for(c = getnext(c->next); c && c->isfloat; c = getnext(c->next));
325 else
326 c = sel;
327 }
322 if(!c) 328 if(!c)
323 return; 329 return;
324 detach(c); 330 detach(c);
325 c->next = clients; 331 c->next = clients;
326 clients->prev = c; 332 clients->prev = c;