Introduction
Introduction Statistics Contact Development Disclaimer Help
tmake sure that changing sx has no impact on snapping - dwm - [fork] customized…
git clone git://src.adamsgaard.dk/dwm
Log
Files
Refs
README
LICENSE
---
commit 04b633ddf394fccf5a3125ea17239bad6997c8df
parent b76561a21258f69f7be946dc6a722843a4a42fab
Author: arg@mig29 <unknown>
Date: Tue, 31 Oct 2006 09:02:16 +0100
make sure that changing sx has no impact on snapping
Diffstat:
M event.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/event.c b/event.c
t@@ -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;
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.