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 wrap: on
line diff
--- 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)