Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
| inline |
side by side
making the selected color more lightning
[dwm.git]
/
event.c
diff --git
a/event.c
b/event.c
index
19db371
..
e3bdea4
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;