Commit 04b633d

arg@mig29 <unknown>
2006-10-31 03:02:16
make sure that changing sx has no impact on snapping
1 parent b76561a
Changed files (1)
event.c
@@ -48,7 +48,7 @@ movemouse(Client *c) {
 			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;