# HG changeset patch # User Anselm R.Garbe # Date 1155537799 -7200 # Node ID a47b3b0d7bf4e36104a05ca87db8d7fca8af8a0b # Parent 8a8ea74e1b877c436565078d001a72ff8999bba5 applied Sanders LD and resize patches diff -r 8a8ea74e1b87 -r a47b3b0d7bf4 Makefile --- a/Makefile Mon Aug 14 08:38:26 2006 +0200 +++ b/Makefile Mon Aug 14 08:43:19 2006 +0200 @@ -14,6 +14,7 @@ @echo "CFLAGS = ${CFLAGS}" @echo "LDFLAGS = ${LDFLAGS}" @echo "CC = ${CC}" + @echo "LD = ${LD}" .c.o: @echo CC $< @@ -27,7 +28,7 @@ dwm: ${OBJ} @echo LD $@ - @${CC} -o $@ ${OBJ} ${LDFLAGS} + @${LD} -o $@ ${OBJ} ${LDFLAGS} @strip $@ clean: diff -r 8a8ea74e1b87 -r a47b3b0d7bf4 config.mk --- a/config.mk Mon Aug 14 08:38:26 2006 +0200 +++ b/config.mk Mon Aug 14 08:43:19 2006 +0200 @@ -20,5 +20,6 @@ #CFLAGS = -g -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\" #LDFLAGS = -g ${LIBS} -# compiler +# compiler and linker CC = cc +LD = ${CC} diff -r 8a8ea74e1b87 -r a47b3b0d7bf4 event.c --- a/event.c Mon Aug 14 08:38:26 2006 +0200 +++ b/event.c Mon Aug 14 08:43:19 2006 +0200 @@ -58,6 +58,7 @@ resizemouse(Client *c) { int ocx, ocy; + int nw, nh; Corner sticky; XEvent ev; @@ -76,8 +77,10 @@ break; case MotionNotify: XSync(dpy, False); - c->w = abs(ocx - ev.xmotion.x); - c->h = abs(ocy - ev.xmotion.y); + if((nw = abs(ocx - ev.xmotion.x))) + c->w = abs(ocx - ev.xmotion.x); + if((nh = abs(ocy - ev.xmotion.y))) + c->h = abs(ocy - ev.xmotion.y); c->x = (ocx <= ev.xmotion.x) ? ocx : ocx - c->w; c->y = (ocy <= ev.xmotion.y) ? ocy : ocy - c->h; if(ocx <= ev.xmotion.x)