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 /event.c | |
| parent | in a 1920x1200 setup 40 pixels of snap value are much better than 20 (diff) | |
| download | dwm-04b633ddf394fccf5a3125ea17239bad6997c8df.tar.gz dwm-04b633ddf394fccf5a3125ea17239bad6997c8df.zip | |
make sure that changing sx has no impact on snapping
Diffstat (limited to 'event.c')
| -rw-r--r-- | event.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -48,7 +48,7 @@ movemouse(Client *c) { | |||
| 48 | XSync(dpy, False); | 48 | XSync(dpy, False); |
| 49 | c->x = ocx + (ev.xmotion.x - x1); | 49 | c->x = ocx + (ev.xmotion.x - x1); |
| 50 | c->y = ocy + (ev.xmotion.y - y1); | 50 | c->y = ocy + (ev.xmotion.y - y1); |
| 51 | if(abs(c->x) < SNAP) | 51 | if(abs(sx + c->x) < SNAP) |
| 52 | c->x = sx; | 52 | c->x = sx; |
| 53 | else if(abs((sx + sw) - (c->x + c->w)) < SNAP) | 53 | else if(abs((sx + sw) - (c->x + c->w)) < SNAP) |
| 54 | c->x = sw - c->w - 2 * BORDERPX; | 54 | c->x = sw - c->w - 2 * BORDERPX; |
