From 3c48858ffada0825b62e52ac14b1feba4b7654a4 Mon Sep 17 00:00:00 2001 From: Anselm R Garbe Date: Fri, 25 Mar 2011 13:57:54 +0000 Subject: applied Hiltjos' BUGS patch from 23 Mar, sorry took a while :) --- dwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dwm.c') 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; -- cgit 1.4.1-2-gfad0