aewl
diff event.c @ 556:12deea36603d
make sure that changing sx has no impact on snapping
author | arg@mig29 |
---|---|
date | Tue, 31 Oct 2006 09:02:16 +0100 |
parents | 1734939bceba |
children | fe766305eed1 |
line diff
1.1 --- a/event.c Mon Oct 30 12:40:10 2006 +0100 1.2 +++ b/event.c Tue Oct 31 09:02:16 2006 +0100 1.3 @@ -48,7 +48,7 @@ 1.4 XSync(dpy, False); 1.5 c->x = ocx + (ev.xmotion.x - x1); 1.6 c->y = ocy + (ev.xmotion.y - y1); 1.7 - if(abs(c->x) < SNAP) 1.8 + if(abs(sx + c->x) < SNAP) 1.9 c->x = sx; 1.10 else if(abs((sx + sw) - (c->x + c->w)) < SNAP) 1.11 c->x = sw - c->w - 2 * BORDERPX;