make sure that changing sx has no impact on snapping
04b633dd
1 file(s) · +1 −1
| 48 | 48 | XSync(dpy, False); |
|
| 49 | 49 | c->x = ocx + (ev.xmotion.x - x1); |
|
| 50 | 50 | c->y = ocy + (ev.xmotion.y - y1); |
|
| 51 | - | if(abs(c->x) < SNAP) |
|
| 51 | + | if(abs(sx + c->x) < SNAP) |
|
| 52 | 52 | c->x = sx; |
|
| 53 | 53 | else if(abs((sx + sw) - (c->x + c->w)) < SNAP) |
|
| 54 | 54 | c->x = sw - c->w - 2 * BORDERPX; |