JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fixing zoom
authorAnselm R. Garbe <arg@10kloc.org>
Tue, 5 Sep 2006 15:10:48 +0000 (17:10 +0200)
committerAnselm R. Garbe <arg@10kloc.org>
Tue, 5 Sep 2006 15:10:48 +0000 (17:10 +0200)
view.c

diff --git a/view.c b/view.c
index c005a33..d61d0de 100644 (file)
--- a/view.c
+++ b/view.c
@@ -317,9 +317,10 @@ zoom(Arg *arg)
        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;