changeset 535:13ef0d218c67

hotfix
author Anselm R. Garbe <arg@10kloc.org>
date Fri, 06 Oct 2006 14:01:53 +0200 (2006-10-06)
parents 3daef7425637
children d5aa5a4be560
files view.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/view.c	Fri Oct 06 13:43:59 2006 +0200
+++ b/view.c	Fri Oct 06 14:01:53 2006 +0200
@@ -108,7 +108,7 @@
 	if(n > 1)
 		th /= (n - 1);
 
-	for(i = 0, c = clients; c; c = c->next, i++)
+	for(i = 0, c = clients; c; c = c->next)
 		if(isvisible(c)) {
 			if(c->isfloat) {
 				resize(c, True, TopLeft);
@@ -139,6 +139,7 @@
 					c->h = stackh - 2 * BORDERPX;
 			}
 			resize(c, False, TopLeft);
+			i++;
 		}
 		else
 			ban(c);