dwm-meillo

diff client.c @ 315:d9bef4067cd5

applied Sanders patch
author Anselm R.Garbe <arg@10ksloc.org>
date Fri, 18 Aug 2006 13:40:34 +0200
parents 8bafc3ac9f58
children 1b45d6f14fca
line diff
     1.1 --- a/client.c	Fri Aug 18 08:39:33 2006 +0200
     1.2 +++ b/client.c	Fri Aug 18 13:40:34 2006 +0200
     1.3 @@ -203,11 +203,11 @@
     1.4  	c->border = 0;
     1.5  	setsize(c);
     1.6  
     1.7 -	if(c->x + c->w > sw)
     1.8 +	if(c->x + c->w + 2 > sw)
     1.9  		c->x = sw - c->w - 2;
    1.10  	if(c->x < 0)
    1.11  		c->x = 0;
    1.12 -	if(c->y + c->h > sh)
    1.13 +	if(c->y + c->h + 2 > sh)
    1.14  		c->y = sh - c->h - 2;
    1.15  	if(c->h != sh && c->y < bh)
    1.16  		c->y = bh;
    1.17 @@ -293,10 +293,6 @@
    1.18  		if(c->maxh && c->h > c->maxh)
    1.19  			c->h = c->maxh;
    1.20  	}
    1.21 -	if(c->x > sw) /* might happen on restart */
    1.22 -		c->x = sw - c->w;
    1.23 -	if(c->y > sh)
    1.24 -		c->y = sh - c->h;
    1.25  	if(sticky == TopRight || sticky == BotRight)
    1.26  		c->x = right - c->w;
    1.27  	if(sticky == BotLeft || sticky == BotRight)