author | Anselm R. Garbe <arg@10kloc.org> |
Tue, 05 Sep 2006 17:10:48 +0200 | |
changeset 426 | 21df917c2719 |
parent 425 | 67f37b93ac73 |
child 427 | e58cd202c4e9 |
--- a/view.c Tue Sep 05 16:11:52 2006 +0200 +++ b/view.c Tue Sep 05 17:10:48 2006 +0200 @@ -317,9 +317,10 @@ if(!sel || sel->isfloat || n < 2 || (arrange != dotile) || maximized) return; - if((c = sel) == getnext(clients)) - if(!(c = getnext(c->next))) - return; + if((c = sel) == getnext(clients)) + for(c = getnext(c->next); c && c->isfloat; c = getnext(c->next)); + if(!c) + return; detach(c); c->next = clients; clients->prev = c;