diff options
author | arg@mig29 <unknown> | 2006-10-31 09:02:16 +0100 |
---|---|---|
committer | arg@mig29 <unknown> | 2006-10-31 09:02:16 +0100 |
commit | 04b633ddf394fccf5a3125ea17239bad6997c8df (patch) | |
tree | 823de25b5dea47fccac86ed2d5ea353b36ce4405 | |
parent | b76561a21258f69f7be946dc6a722843a4a42fab (diff) | |
download | dwm-04b633ddf394fccf5a3125ea17239bad6997c8df.tar.gz |
make sure that changing sx has no impact on snapping
-rw-r--r-- | event.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |