|
|
@ -1170,8 +1170,6 @@ movemouse(const Arg *arg) |
|
|
|
|
|
|
|
|
|
|
|
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 (nx >= selmon->wx && nx <= selmon->wx + selmon->ww |
|
|
|
|
|
|
|
&& 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; |
|
|
|
else if (abs((selmon->wx + selmon->ww) - (nx + WIDTH(c))) < snap) |
|
|
|
else if (abs((selmon->wx + selmon->ww) - (nx + WIDTH(c))) < snap) |
|
|
@ -1183,7 +1181,6 @@ movemouse(const Arg *arg) |
|
|
|
if (!c->isfloating && selmon->lt[selmon->sellt]->arrange |
|
|
|
if (!c->isfloating && selmon->lt[selmon->sellt]->arrange |
|
|
|
&& (abs(nx - c->x) > snap || abs(ny - c->y) > snap)) |
|
|
|
&& (abs(nx - c->x) > snap || abs(ny - c->y) > snap)) |
|
|
|
togglefloating(NULL); |
|
|
|
togglefloating(NULL); |
|
|
|
} |
|
|
|
|
|
|
|
if (!selmon->lt[selmon->sellt]->arrange || c->isfloating) |
|
|
|
if (!selmon->lt[selmon->sellt]->arrange || c->isfloating) |
|
|
|
resize(c, nx, ny, c->w, c->h, 1); |
|
|
|
resize(c, nx, ny, c->w, c->h, 1); |
|
|
|
break; |
|
|
|
break; |
|
|
|