about summary refs log tree commit diff stats
path: root/view.c
diff options
context:
space:
mode:
authorarg@mmvi <unknown>2006-09-22 15:39:38 +0200
committerarg@mmvi <unknown>2006-09-22 15:39:38 +0200
commit3c4b7672a84f4be9eeba889abda15a33c9b45eb1 (patch)
tree9ed6cee07f124328c6d65d7775ca32f51b5bacd9 /view.c
parent6de149eb22c889174d34f6f8d12466388f29aabf (diff)
downloaddwm-3c4b7672a84f4be9eeba889abda15a33c9b45eb1.tar.gz
applied jukkas patch
Diffstat (limited to 'view.c')
-rw-r--r--view.c12
1 files changed, 4 insertions, 8 deletions
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;