changing snap priority
This commit is contained in:
parent
dc1690ce0f
commit
99785382ae
6
event.c
6
event.c
@ -50,11 +50,11 @@ movemouse(Client *c) {
|
|||||||
c->y = ocy + (ev.xmotion.y - y1);
|
c->y = ocy + (ev.xmotion.y - y1);
|
||||||
if(abs(c->x) < sx + SNAP)
|
if(abs(c->x) < sx + SNAP)
|
||||||
c->x = sx;
|
c->x = sx;
|
||||||
|
else if(c->x + c->w > sx + sw - SNAP)
|
||||||
|
c->x = sw - c->w - 2 * BORDERPX;
|
||||||
if(abs(c->y) < sy + bh + SNAP)
|
if(abs(c->y) < sy + bh + SNAP)
|
||||||
c->y = sy + bh;
|
c->y = sy + bh;
|
||||||
if(c->x + c->w > sx + sw - SNAP)
|
else if(c->y + c->h > sy + sh - SNAP)
|
||||||
c->x = sw - c->w - 2 * BORDERPX;
|
|
||||||
if(c->y + c->h > sy + sh - SNAP)
|
|
||||||
c->y = sh - c->h - 2 * BORDERPX;
|
c->y = sh - c->h - 2 * BORDERPX;
|
||||||
resize(c, False, TopLeft);
|
resize(c, False, TopLeft);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user