aboutsummaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
authorAnselm R Garbe <anselm@garbe.us>2011-03-25 13:57:54 +0000
committerAnselm R Garbe <anselm@garbe.us>2011-03-25 13:57:54 +0000
commit3c48858ffada0825b62e52ac14b1feba4b7654a4 (patch)
treed688bdb8138214a05e41dcafd8f5e4d38edfe87d /dwm.c
parentdd46d5b588dc5d33940bde87817f3e8d608788d4 (diff)
downloaddwm-3c48858ffada0825b62e52ac14b1feba4b7654a4.tar
dwm-3c48858ffada0825b62e52ac14b1feba4b7654a4.tar.gz
dwm-3c48858ffada0825b62e52ac14b1feba4b7654a4.tar.bz2
applied Hiltjos' BUGS patch from 23 Mar, sorry took a while :)
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwm.c b/dwm.c
index 4a8ee32..7b5fa4e 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1202,7 +1202,7 @@ movemouse(const Arg *arg) {
case MotionNotify:
nx = ocx + (ev.xmotion.x - x);
ny = ocy + (ev.xmotion.y - y);
- if(snap && nx >= selmon->wx && nx <= selmon->wx + selmon->ww
+ if(nx >= selmon->wx && nx <= selmon->wx + selmon->ww
&& ny >= selmon->wy && ny <= selmon->wy + selmon->wh) {
if(abs(selmon->wx - nx) < snap)
nx = selmon->wx;