dwm-meillo

changeset 553:5094facab5c7

changing snap priority
author arg@mig29
date Mon, 30 Oct 2006 12:07:00 +0100
parents 98a0d10e9918
children 1734939bceba
files event.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line diff
     1.1 --- a/event.c	Mon Oct 30 12:04:08 2006 +0100
     1.2 +++ b/event.c	Mon Oct 30 12:07:00 2006 +0100
     1.3 @@ -50,11 +50,11 @@
     1.4  			c->y = ocy + (ev.xmotion.y - y1);
     1.5  			if(abs(c->x) < sx + SNAP)
     1.6  				c->x = sx;
     1.7 +			else if(c->x + c->w > sx + sw - SNAP)
     1.8 +				c->x = sw - c->w - 2 * BORDERPX;
     1.9  			if(abs(c->y) < sy + bh + SNAP)
    1.10  				c->y = sy + bh;
    1.11 -			if(c->x + c->w > sx + sw - SNAP)
    1.12 -				c->x = sw - c->w - 2 * BORDERPX;
    1.13 -			if(c->y + c->h > sy + sh - SNAP)
    1.14 +			else if(c->y + c->h > sy + sh - SNAP)
    1.15  				c->y = sh - c->h - 2 * BORDERPX;
    1.16  			resize(c, False, TopLeft);
    1.17  			break;