applied Sanders LD and resize patches
Anselm R.Garbe arg@10ksloc.org
Mon, 14 Aug 2006 08:43:19 +0200
M
Makefile
→
Makefile
@@ -14,6 +14,7 @@ @echo dwm build options:
@echo "CFLAGS = ${CFLAGS}" @echo "LDFLAGS = ${LDFLAGS}" @echo "CC = ${CC}" + @echo "LD = ${LD}" .c.o: @echo CC $<@@ -27,7 +28,7 @@ @cp config.default.h $@
dwm: ${OBJ} @echo LD $@ - @${CC} -o $@ ${OBJ} ${LDFLAGS} + @${LD} -o $@ ${OBJ} ${LDFLAGS} @strip $@ clean:
M
event.c
→
event.c
@@ -58,6 +58,7 @@ static void
resizemouse(Client *c) { int ocx, ocy; + int nw, nh; Corner sticky; XEvent ev;@@ -76,8 +77,10 @@ handler[Expose](&ev);
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)