make sure that changing sx has no impact on snapping 2.0
authorarg@mig29
Tue, 31 Oct 2006 09:02:16 +0100
changeset 556 12deea36603d
parent 555 c0a0245b9815
child 557 9a17f6e105f4
make sure that changing sx has no impact on snapping
event.c
--- a/event.c	Mon Oct 30 12:40:10 2006 +0100
+++ b/event.c	Tue Oct 31 09:02:16 2006 +0100
@@ -48,7 +48,7 @@
 			XSync(dpy, False);
 			c->x = ocx + (ev.xmotion.x - x1);
 			c->y = ocy + (ev.xmotion.y - y1);
-			if(abs(c->x) < SNAP)
+			if(abs(sx + c->x) < SNAP)
 				c->x = sx;
 			else if(abs((sx + sw) - (c->x + c->w)) < SNAP)
 				c->x = sw - c->w - 2 * BORDERPX;