Mercurial > dwm-meillo
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 (2006-10-31) |
parents | c0a0245b9815 |
children | 9a17f6e105f4 |
files | event.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;