From: arg@mig29 Date: Tue, 31 Oct 2006 08:02:16 +0000 (+0100) Subject: make sure that changing sx has no impact on snapping X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=commitdiff_plain;h=04b633ddf394fccf5a3125ea17239bad6997c8df make sure that changing sx has no impact on snapping --- diff --git a/event.c b/event.c index 19db371..e3bdea4 100644 --- a/event.c +++ b/event.c @@ -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;