changing snap priority
arg@mig29 unknown
Mon, 30 Oct 2006 12:07:00 +0100
1 files changed,
3 insertions(+),
3 deletions(-)
jump to
M
event.c
→
event.c
@@ -50,11 +50,11 @@ c->x = ocx + (ev.xmotion.x - x1);
c->y = ocy + (ev.xmotion.y - y1); if(abs(c->x) < sx + SNAP) 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) c->y = sy + bh; - if(c->x + c->w > sx + sw - SNAP) - c->x = sw - c->w - 2 * BORDERPX; - if(c->y + c->h > sy + sh - SNAP) + else if(c->y + c->h > sy + sh - SNAP) c->y = sh - c->h - 2 * BORDERPX; resize(c, False, TopLeft); break;