Mercurial > 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 wrap: on
line diff
--- 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;