Ver código fonte

prevent pop() if first sel == nexttiled(clients)

Anselm R. Garbe 19 anos atrás
pai
commit
e9cfae7aba
2 arquivos alterados com 3 adições e 3 exclusões
  1. 2 2
      config.mk
  2. 1 1
      view.c

+ 2 - 2
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}\"

+ 1 - 1
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;