JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
prevent pop() if first sel == nexttiled(clients)
authorAnselm R. Garbe <arg@suckless.org>
Fri, 5 Jan 2007 20:56:57 +0000 (21:56 +0100)
committerAnselm R. Garbe <arg@suckless.org>
Fri, 5 Jan 2007 20:56:57 +0000 (21:56 +0100)
config.mk
view.c

index f65e6fc..1d73f2b 100644 (file)
--- a/config.mk
+++ b/config.mk
@@ -17,8 +17,8 @@ LIBS = -L/usr/lib -lc -L${X11LIB} -lX11
 # flags
 CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\"
 LDFLAGS = ${LIBS}
-CFLAGS = -g -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\"
-LDFLAGS = -g ${LIBS}
+#CFLAGS = -g -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\"
+#LDFLAGS = -g ${LIBS}
 
 # Solaris
 #CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
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;