dwm-meillo

changeset 310:f0b609fca3de

fixed issue Sander reported
author Anselm R.Garbe <arg@10ksloc.org>
date Thu, 17 Aug 2006 09:35:44 +0200
parents 204427dcc087
children 099c595c53e6
files client.c
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line diff
     1.1 --- a/client.c	Wed Aug 16 19:25:29 2006 +0200
     1.2 +++ b/client.c	Thu Aug 17 09:35:44 2006 +0200
     1.3 @@ -285,7 +285,6 @@
     1.4  {
     1.5  	int bottom = c->y + c->h;
     1.6  	int right = c->x + c->w;
     1.7 -	/*XConfigureEvent e;*/
     1.8  	XWindowChanges wc;
     1.9  
    1.10  	if(sizehints) {
    1.11 @@ -302,9 +301,9 @@
    1.12  		if(c->maxh && c->h > c->maxh)
    1.13  			c->h = c->maxh;
    1.14  	}
    1.15 -	if(c->x > right) /* might happen on restart */
    1.16 -		c->x = right - c->w;
    1.17 -	if(c->y > bottom)
    1.18 +	if(c->x > sw) /* might happen on restart */
    1.19 +		c->x = sw - c->w;
    1.20 +	if(c->y > sh)
    1.21  		c->y = bottom - c->h;
    1.22  	if(sticky == TopRight || sticky == BotRight)
    1.23  		c->x = right - c->w;