diff -r be4f90c03582 -r 0d2559f46b9e view.c --- a/view.c Mon Sep 25 08:21:51 2006 +0200 +++ b/view.c Mon Sep 25 20:38:30 2006 +0200 @@ -101,9 +101,8 @@ Client *c; w = sw - mw; - for(n = 0, c = clients; c; c = c->next) - if(isvisible(c) && !c->isfloat) - n++; + for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next)) + n++; if(n > 1) h = (sh - bh) / (n - 1); @@ -116,8 +115,7 @@ resize(c, True, TopLeft); continue; } - if(c->ismax) - togglemax(c); + c->ismax = False; if(n == 1) { c->x = sx; c->y = sy + bh;