aewl

changeset 484:c035a0b42560

applied jukkas patch
author arg@mmvi
date Fri, 22 Sep 2006 15:39:38 +0200
parents 0db173d7e59c
children 759c9d9a959d
files view.c
diffstat 1 files changed, 4 insertions(+), 8 deletions(-) [+]
line diff
     1.1 --- a/view.c	Fri Sep 22 14:02:41 2006 +0200
     1.2 +++ b/view.c	Fri Sep 22 15:39:38 2006 +0200
     1.3 @@ -102,14 +102,8 @@
     1.4  
     1.5  	w = sw - mw;
     1.6  	for(n = 0, c = clients; c; c = c->next)
     1.7 -		if(isvisible(c)) {
     1.8 -			if(c->isfloat) {
     1.9 -				if(c->ismax)
    1.10 -					togglemax(c);
    1.11 -			}
    1.12 -			else
    1.13 -				n++;
    1.14 -		}
    1.15 +		if(isvisible(c) && !c->isfloat)
    1.16 +			n++;
    1.17  
    1.18  	if(n > 1)
    1.19  		h = (sh - bh) / (n - 1);
    1.20 @@ -118,6 +112,8 @@
    1.21  
    1.22  	for(i = 0, c = clients; c; c = c->next) {
    1.23  		if(isvisible(c)) {
    1.24 +			if(c->ismax)
    1.25 +				togglemax(c);
    1.26  			if(c->isfloat) {
    1.27  				resize(c, True, TopLeft);
    1.28  				continue;