dwm-meillo

diff event.c @ 552:98a0d10e9918

removed useless abs() calls
author arg@mig29
date Mon, 30 Oct 2006 12:04:08 +0100
parents 798b906378d6
children 5094facab5c7
line diff
     1.1 --- a/event.c	Mon Oct 30 11:58:05 2006 +0100
     1.2 +++ b/event.c	Mon Oct 30 12:04:08 2006 +0100
     1.3 @@ -52,9 +52,9 @@
     1.4  				c->x = sx;
     1.5  			if(abs(c->y) < sy + bh + SNAP)
     1.6  				c->y = sy + bh;
     1.7 -			if(abs(c->x + c->w) > sx + sw - SNAP)
     1.8 +			if(c->x + c->w > sx + sw - SNAP)
     1.9  				c->x = sw - c->w - 2 * BORDERPX;
    1.10 -			if(abs(c->y + c->h) > sy + sh - SNAP)
    1.11 +			if(c->y + c->h > sy + sh - SNAP)
    1.12  				c->y = sh - c->h - 2 * BORDERPX;
    1.13  			resize(c, False, TopLeft);
    1.14  			break;