diff client.c @ 4:a54de16f8277

fix taskbar behavior when exceeding MAX_TASKS; bound moveresize() to windowarea
author paulo@localhost
date Fri, 24 Apr 2009 01:34:17 -0700
parents 7024076fa948
children 0968b3739b8d
line diff
     1.1 --- a/client.c	Thu Apr 23 02:43:13 2009 -0700
     1.2 +++ b/client.c	Fri Apr 24 01:34:17 2009 -0700
     1.3 @@ -500,6 +500,19 @@
     1.4  	nw = wAbs == 'W' ? w : sel->w + w;
     1.5  	nh = hAbs == 'H' ? h : sel->h + h;
     1.6  
     1.7 +	if(xAbs == 'X') {
     1.8 +		if(nx < wax)
     1.9 +			nx = wax;
    1.10 +		else if(nx + nw + 2*BORDERPX > waw)
    1.11 +			nx = wax + waw - nw - 2*BORDERPX;
    1.12 +	}
    1.13 +	if(yAbs == 'Y') {
    1.14 +		if(ny < way)
    1.15 +			ny = way;
    1.16 +		else if(ny + nh + 2*BORDERPX > wah)
    1.17 +			ny = way + wah - nh - 2*BORDERPX;
    1.18 +	}
    1.19 +
    1.20  	ox = sel->x;
    1.21  	oy = sel->y;
    1.22  	ow = sel->w;