# HG changeset patch # User arg@mmvi # Date 1158917041 -7200 # Node ID 635b58a87d2016cd08c1d6d09fd8031f132d5ba4 # Parent bf3de99b7c0c27dd9a25b6040ef255a6d2aee813 patched resizemouse according to sanders remark diff -r bf3de99b7c0c -r 635b58a87d20 event.c --- a/event.c Fri Sep 22 10:01:51 2006 +0200 +++ b/event.c Fri Sep 22 11:24:01 2006 +0200 @@ -108,9 +108,9 @@ 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)