From: arg@mmvi Date: Fri, 22 Sep 2006 09:24:01 +0000 (+0200) Subject: patched resizemouse according to sanders remark X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;ds=inline;h=b2cb925d999f0b745f8be23316258c4f575cb343;p=dwm.git patched resizemouse according to sanders remark --- diff --git a/event.c b/event.c index 1939cd5..86c4819 100644 --- a/event.c +++ b/event.c @@ -108,9 +108,9 @@ resizemouse(Client *c) { case MotionNotify: XSync(dpy, False); if((nw = abs(ocx - ev.xmotion.x))) - c->w = abs(ocx - ev.xmotion.x); + c->w = nw; if((nh = abs(ocy - ev.xmotion.y))) - c->h = abs(ocy - ev.xmotion.y); + c->h = nh; 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)