From 3c4b7672a84f4be9eeba889abda15a33c9b45eb1 Mon Sep 17 00:00:00 2001 From: "arg@mmvi" Date: Fri, 22 Sep 2006 15:39:38 +0200 Subject: applied jukkas patch --- view.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/view.c b/view.c index 682e3317..c5e942d6 100644 --- a/view.c +++ b/view.c @@ -102,14 +102,8 @@ dotile(Arg *arg) { 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 @@ dotile(Arg *arg) { 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; -- cgit v1.2.3