|
|
@ -1202,7 +1202,7 @@ movemouse(const Arg *arg) {
|
|
|
|
case MotionNotify:
|
|
|
|
case MotionNotify:
|
|
|
|
nx = ocx + (ev.xmotion.x - x);
|
|
|
|
nx = ocx + (ev.xmotion.x - x);
|
|
|
|
ny = ocy + (ev.xmotion.y - y);
|
|
|
|
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) {
|
|
|
|
&& ny >= selmon->wy && ny <= selmon->wy + selmon->wh) {
|
|
|
|
if(abs(selmon->wx - nx) < snap)
|
|
|
|
if(abs(selmon->wx - nx) < snap)
|
|
|
|
nx = selmon->wx;
|
|
|
|
nx = selmon->wx;
|
|
|
|