projects
/
suckless
/
dwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b76561a
)
make sure that changing sx has no impact on snapping
author
arg@mig29
<unknown>
Tue, 31 Oct 2006 08:02:16 +0000
(09:02 +0100)
committer
arg@mig29
<unknown>
Tue, 31 Oct 2006 08:02:16 +0000
(09:02 +0100)
event.c
patch
|
blob
|
history
diff --git
a/event.c
b/event.c
index 19db371eba5590cd06b9df6eca4ec8817ff310e5..e3bdea42fa30f6a9b564d3ac08dc43ea288adf46 100644
(file)
--- 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;