aewl

diff event.c @ 478:635b58a87d20

patched resizemouse according to sanders remark
author arg@mmvi
date Fri, 22 Sep 2006 11:24:01 +0200
parents 3e4596240abb
children acb1fc729a8c
line diff
     1.1 --- a/event.c	Fri Sep 22 10:01:51 2006 +0200
     1.2 +++ b/event.c	Fri Sep 22 11:24:01 2006 +0200
     1.3 @@ -108,9 +108,9 @@
     1.4  		case MotionNotify:
     1.5  			XSync(dpy, False);
     1.6  			if((nw = abs(ocx - ev.xmotion.x)))
     1.7 -				c->w = abs(ocx - ev.xmotion.x);
     1.8 +				c->w = nw;
     1.9  			if((nh = abs(ocy - ev.xmotion.y)))
    1.10 -				c->h = abs(ocy - ev.xmotion.y);
    1.11 +				c->h = nh;
    1.12  			c->x = (ocx <= ev.xmotion.x) ? ocx : ocx - c->w;
    1.13  			c->y = (ocy <= ev.xmotion.y) ? ocy : ocy - c->h;
    1.14  			if(ocx <= ev.xmotion.x)