aewl

diff view.c @ 502:9aa3d06199cb

applied Jukkas patch
author Anselm R. Garbe <arg@10kloc.org>
date Thu, 28 Sep 2006 14:03:39 +0200
parents 0d2559f46b9e
children 0cefc169ff67
line diff
     1.1 --- a/view.c	Wed Sep 27 17:21:25 2006 +0200
     1.2 +++ b/view.c	Thu Sep 28 14:03:39 2006 +0200
     1.3 @@ -49,8 +49,8 @@
     1.4  	if((c->ismax = !c->ismax)) {
     1.5  		c->rx = c->x; c->x = sx;
     1.6  		c->ry = c->y; c->y = bh;
     1.7 -		c->rw = c->w; c->w = sw;
     1.8 -		c->rh = c->h; c->h = sh - bh - 2;
     1.9 +		c->rw = c->w; c->w = sw - 2 * BORDERPX;
    1.10 +		c->rh = c->h; c->h = sh - bh - 2 * BORDERPX;
    1.11  	}
    1.12  	else {
    1.13  		c->x = c->rx;
    1.14 @@ -119,29 +119,29 @@
    1.15  			if(n == 1) {
    1.16  				c->x = sx;
    1.17  				c->y = sy + bh;
    1.18 -				c->w = sw - 2;
    1.19 -				c->h = sh - 2 - bh;
    1.20 +				c->w = sw - 2 * BORDERPX;
    1.21 +				c->h = sh - 2 * BORDERPX - bh;
    1.22  			}
    1.23  			else if(i == 0) {
    1.24  				c->x = sx;
    1.25  				c->y = sy + bh;
    1.26 -				c->w = mw - 2;
    1.27 -				c->h = sh - 2 - bh;
    1.28 +				c->w = mw - 2 * BORDERPX;
    1.29 +				c->h = sh - 2 * BORDERPX - bh;
    1.30  			}
    1.31  			else if(h > bh) {
    1.32  				c->x = sx + mw;
    1.33  				c->y = sy + (i - 1) * h + bh;
    1.34 -				c->w = w - 2;
    1.35 +				c->w = w - 2 * BORDERPX;
    1.36  				if(i + 1 == n)
    1.37 -					c->h = sh - c->y - 2;
    1.38 +					c->h = sh - c->y - 2 * BORDERPX;
    1.39  				else
    1.40 -					c->h = h - 2;
    1.41 +					c->h = h - 2 * BORDERPX;
    1.42  			}
    1.43  			else { /* fallback if h < bh */
    1.44  				c->x = sx + mw;
    1.45  				c->y = sy + bh;
    1.46 -				c->w = w - 2;
    1.47 -				c->h = sh - 2 - bh;
    1.48 +				c->w = w - 2 * BORDERPX;
    1.49 +				c->h = sh - 2 * BORDERPX - bh;
    1.50  			}
    1.51  			resize(c, False, TopLeft);
    1.52  			i++;