X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=dwm.c;h=7b5fa4e318e9eca013b138725cc4ea7f5905dd44;hp=4a8ee32f0185f4130d8d0cf3b41b29bf0faf4147;hb=3c48858ffada0825b62e52ac14b1feba4b7654a4;hpb=dd46d5b588dc5d33940bde87817f3e8d608788d4 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;