JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
small addition to dwm.1
[dwm.git] / view.c
diff --git a/view.c b/view.c
index e74d4bc..9ee4c78 100644 (file)
--- a/view.c
+++ b/view.c
@@ -12,13 +12,14 @@ minclient()
 {
        Client *c, *min;
 
+       if((clients && clients->isfloat) || arrange == dofloat)
+               return clients; /* don't touch floating order */
        for(min = c = clients; c; c = c->next)
                if(c->weight < min->weight)
                        min = c;
        return min;
 }
 
-
 static void
 reorder()
 {
@@ -298,8 +299,9 @@ zoom(Arg *arg)
                if(!(c = nexttiled(c->next)))
                        return;
        detach(c);
+       if(clients)
+               clients->prev = c;
        c->next = clients;
-       clients->prev = c;
        clients = c;
        focus(c);
        arrange(NULL);