# HG changeset patch # User arg@mmvi # Date 1158932378 -7200 # Node ID c035a0b4256069e9039bc4fbc1cbb15c712b8317 # Parent 0db173d7e59c73a24f6758773e82f6a17262b178 applied jukkas patch diff -r 0db173d7e59c -r c035a0b42560 view.c --- a/view.c Fri Sep 22 14:02:41 2006 +0200 +++ b/view.c Fri Sep 22 15:39:38 2006 +0200 @@ -102,14 +102,8 @@ w = sw - mw; for(n = 0, c = clients; c; c = c->next) - if(isvisible(c)) { - if(c->isfloat) { - if(c->ismax) - togglemax(c); - } - else - n++; - } + if(isvisible(c) && !c->isfloat) + n++; if(n > 1) h = (sh - bh) / (n - 1); @@ -118,6 +112,8 @@ for(i = 0, c = clients; c; c = c->next) { if(isvisible(c)) { + if(c->ismax) + togglemax(c); if(c->isfloat) { resize(c, True, TopLeft); continue;