aewl

changeset 556:12deea36603d 2.0

make sure that changing sx has no impact on snapping
author arg@mig29
date Tue, 31 Oct 2006 09:02:16 +0100
parents c0a0245b9815
children 9a17f6e105f4
files event.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;