From: Anselm R. Garbe Date: Tue, 5 Sep 2006 16:04:22 +0000 (+0200) Subject: this makes sure the issue mentioned by sander X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=commitdiff_plain;h=e1315fd40cf7f3df911e1b4f6876c47ce1feb61c this makes sure the issue mentioned by sander --- diff --git a/view.c b/view.c index d61d0de..b76b47e 100644 --- a/view.c +++ b/view.c @@ -317,8 +317,14 @@ zoom(Arg *arg) if(!sel || sel->isfloat || n < 2 || (arrange != dotile) || maximized) return; - if((c = sel) == getnext(clients)) - for(c = getnext(c->next); c && c->isfloat; c = getnext(c->next)); + /* this is somewhat tricky, it asserts to only zoom tiled clients */ + for(c = clients; c && c->isfloat; c = getnext(c->next)); + if(c) { + if(c == sel) + for(c = getnext(c->next); c && c->isfloat; c = getnext(c->next)); + else + c = sel; + } if(!c) return; detach(c);