aewl

diff view.c @ 488:0d2559f46b9e

applied sanders jukka patch
author arg@mmvi
date Mon, 25 Sep 2006 20:38:30 +0200
parents be4f90c03582
children 9aa3d06199cb
line diff
     1.1 --- a/view.c	Mon Sep 25 08:21:51 2006 +0200
     1.2 +++ b/view.c	Mon Sep 25 20:38:30 2006 +0200
     1.3 @@ -101,9 +101,8 @@
     1.4  	Client *c;
     1.5  
     1.6  	w = sw - mw;
     1.7 -	for(n = 0, c = clients; c; c = c->next)
     1.8 -		if(isvisible(c) && !c->isfloat)
     1.9 -			n++;
    1.10 +	for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next))
    1.11 +		n++;
    1.12  
    1.13  	if(n > 1)
    1.14  		h = (sh - bh) / (n - 1);
    1.15 @@ -116,8 +115,7 @@
    1.16  				resize(c, True, TopLeft);
    1.17  				continue;
    1.18  			}
    1.19 -			if(c->ismax)
    1.20 -				togglemax(c);
    1.21 +			c->ismax = False;
    1.22  			if(n == 1) {
    1.23  				c->x = sx;
    1.24  				c->y = sy + bh;