aewl

changeset 517:2b4bd49fc155

applied ality's hardcode-0 patches
author Anselm R. Garbe <arg@10kloc.org>
date Fri, 29 Sep 2006 18:21:02 +0200
parents e5f8d6ac509c
children f35e6c5993ef
files client.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line diff
     1.1 --- a/client.c	Fri Sep 29 18:08:20 2006 +0200
     1.2 +++ b/client.c	Fri Sep 29 18:21:02 2006 +0200
     1.3 @@ -216,10 +216,10 @@
     1.4  
     1.5  	if(c->x + c->w + 2 * BORDERPX > sw)
     1.6  		c->x = sw - c->w - 2 * BORDERPX;
     1.7 -	if(c->x < 0)
     1.8 -		c->x = 0;
     1.9 +	if(c->x < sx)
    1.10 +		c->x = sx;
    1.11  	if(c->y + c->h + 2 * BORDERPX > sh)
    1.12 -		c->y = sh - c->h - 2;
    1.13 +		c->y = sh - c->h - 2 * BORDERPX;
    1.14  	if(c->h != sh && c->y < bh)
    1.15  		c->y = bh;
    1.16  
    1.17 @@ -285,8 +285,8 @@
    1.18  		c->y = bottom - c->h;
    1.19  
    1.20  	/* offscreen appearance fixes */
    1.21 -	if(c->x + c->w < 0)
    1.22 -		c->x = 0;
    1.23 +	if(c->x + c->w < sx)
    1.24 +		c->x = sx;
    1.25  	if(c->y + c->h < bh)
    1.26  		c->y = bh;
    1.27  	if(c->x > sw)