JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
removed the if(clients) check from popping code
[dwm.git] / client.c
index 5d34c07..57ea617 100644 (file)
--- a/client.c
+++ b/client.c
@@ -461,7 +461,7 @@ zoom(Arg *arg)
 {
        Client *c;
 
-       if(!sel || (arrange != dotile) || sel->isfloat)
+       if(!sel || (arrange != dotile) || sel->isfloat || sel->ismax)
                return;
 
        if(sel == getnext(clients))  {
@@ -477,8 +477,7 @@ zoom(Arg *arg)
        if(sel->next)
                sel->next->prev = sel->prev;
        sel->prev = NULL;
-       if(clients)
-               clients->prev = sel;
+       clients->prev = sel;
        sel->next = clients;
        clients = sel;
        arrange(NULL);