JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
prevent pop() if first sel == nexttiled(clients)
[dwm.git] / view.c
diff --git a/view.c b/view.c
index ffa22a1..503f1c2 100644 (file)
--- a/view.c
+++ b/view.c
@@ -261,7 +261,7 @@ zoom(Arg *arg) {
                n++;
 
        c = sel;
-       if(arrange != dofloat) {
+       if((arrange != dofloat) && c != nexttiled(clients)) {
                detach(c);
                if(clients)
                        clients->prev = c;