view.c
changeset 433 a6b8994af164
parent 430 1e8aba00964e
child 436 b3659c3c5dab
--- a/view.c	Wed Sep 06 09:23:34 2006 +0200
+++ b/view.c	Wed Sep 06 10:03:21 2006 +0200
@@ -41,7 +41,7 @@
 static Client *
 nexttiled(Client *c)
 {
-	for(c = getnext(c->next); c && c->isfloat; c = getnext(c->next));
+	for(c = getnext(c); c && c->isfloat; c = getnext(c->next));
 	return c;
 }
 
@@ -325,7 +325,7 @@
 		return;
 
 	if((c = sel) == nexttiled(clients))
-		if(!(c = nexttiled(c)))
+		if(!(c = nexttiled(c->next)))
 			return;
 	detach(c);
 	c->next = clients;