aewl
changeset 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 |
files | view.c |
diffstat | 1 files changed, 8 insertions(+), 2 deletions(-) [+] |
line diff
1.1 --- a/view.c Tue Sep 05 17:10:48 2006 +0200 1.2 +++ b/view.c Tue Sep 05 18:04:22 2006 +0200 1.3 @@ -317,8 +317,14 @@ 1.4 if(!sel || sel->isfloat || n < 2 || (arrange != dotile) || maximized) 1.5 return; 1.6 1.7 - if((c = sel) == getnext(clients)) 1.8 - for(c = getnext(c->next); c && c->isfloat; c = getnext(c->next)); 1.9 + /* this is somewhat tricky, it asserts to only zoom tiled clients */ 1.10 + for(c = clients; c && c->isfloat; c = getnext(c->next)); 1.11 + if(c) { 1.12 + if(c == sel) 1.13 + for(c = getnext(c->next); c && c->isfloat; c = getnext(c->next)); 1.14 + else 1.15 + c = sel; 1.16 + } 1.17 if(!c) 1.18 return; 1.19 detach(c);