dwm-meillo

changeset 661:4b8096176bbe

prevent pop() if first sel == nexttiled(clients)
author Anselm R. Garbe <arg@suckless.org>
date Fri, 05 Jan 2007 21:56:57 +0100
parents 4c6d27f03773
children 3e0f11a44293
files config.mk view.c
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line diff
     1.1 --- a/config.mk	Fri Jan 05 21:55:43 2007 +0100
     1.2 +++ b/config.mk	Fri Jan 05 21:56:57 2007 +0100
     1.3 @@ -17,8 +17,8 @@
     1.4  # flags
     1.5  CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\"
     1.6  LDFLAGS = ${LIBS}
     1.7 -CFLAGS = -g -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\"
     1.8 -LDFLAGS = -g ${LIBS}
     1.9 +#CFLAGS = -g -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\"
    1.10 +#LDFLAGS = -g ${LIBS}
    1.11  
    1.12  # Solaris
    1.13  #CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
     2.1 --- a/view.c	Fri Jan 05 21:55:43 2007 +0100
     2.2 +++ b/view.c	Fri Jan 05 21:56:57 2007 +0100
     2.3 @@ -261,7 +261,7 @@
     2.4  		n++;
     2.5  
     2.6  	c = sel;
     2.7 -	if(arrange != dofloat) {
     2.8 +	if((arrange != dofloat) && c != nexttiled(clients)) {
     2.9  		detach(c);
    2.10  		if(clients)
    2.11  			clients->prev = c;