patched resizemouse according to sanders remark b2cb925d
arg@mmvi · 2006-09-22 11:24 1 file(s) · +2 −2
event.c +2 −2
108 108
		case MotionNotify:
109 109
			XSync(dpy, False);
110 110
			if((nw = abs(ocx - ev.xmotion.x)))
111 -
				c->w = abs(ocx - ev.xmotion.x);
111 +
				c->w = nw;
112 112
			if((nh = abs(ocy - ev.xmotion.y)))
113 -
				c->h = abs(ocy - ev.xmotion.y);
113 +
				c->h = nh;
114 114
			c->x = (ocx <= ev.xmotion.x) ? ocx : ocx - c->w;
115 115
			c->y = (ocy <= ev.xmotion.y) ? ocy : ocy - c->h;
116 116
			if(ocx <= ev.xmotion.x)