patched resizemouse according to sanders remark
arg@mmvi unknown
Fri, 22 Sep 2006 11:24:01 +0200
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
event.c
→
event.c
@@ -108,9 +108,9 @@ break;
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)