prevent pop() if first sel == nexttiled(clients)
authorAnselm R. Garbe <arg@suckless.org>
Fri, 05 Jan 2007 21:56:57 +0100
changeset 661 4b8096176bbe
parent 660 4c6d27f03773
child 662 3e0f11a44293
prevent pop() if first sel == nexttiled(clients)
config.mk
view.c
--- a/config.mk	Fri Jan 05 21:55:43 2007 +0100
+++ b/config.mk	Fri Jan 05 21:56:57 2007 +0100
@@ -17,8 +17,8 @@
 # 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}\"
--- a/view.c	Fri Jan 05 21:55:43 2007 +0100
+++ b/view.c	Fri Jan 05 21:56:57 2007 +0100
@@ -261,7 +261,7 @@
 		n++;
 
 	c = sel;
-	if(arrange != dofloat) {
+	if((arrange != dofloat) && c != nexttiled(clients)) {
 		detach(c);
 		if(clients)
 			clients->prev = c;