X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=view.c;h=c5e942d664e80a1213a5ececbaca644c9a17996e;hb=3c4b7672a84f4be9eeba889abda15a33c9b45eb1;hp=682e3317d2ac91f091089e4b27bbd04c57717035;hpb=6de149eb22c889174d34f6f8d12466388f29aabf;p=dwm.git diff --git a/view.c b/view.c index 682e331..c5e942d 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;