client.c
changeset 93 c498da7520c7
parent 81 92f0d50475be
child 94 6efe82c775c9
--- a/client.c	Tue Jul 18 08:18:54 2006 +0200
+++ b/client.c	Tue Jul 18 11:38:31 2006 +0200
@@ -66,8 +66,8 @@
 	if(!sel)
 		return;
 
-	if(!(c = getnext(sel->next)))
-		c = getnext(clients);
+	if(!(c = getnext(sel->next, tsel)))
+		c = getnext(clients, tsel);
 	if(c) {
 		higher(c);
 		c->revert = sel;
@@ -410,8 +410,8 @@
 	if(!sel)
 		return;
 
-	if(sel == getnext(clients) && sel->next)  {
-		if((c = getnext(sel->next)))
+	if(sel == getnext(clients, tsel) && sel->next)  {
+		if((c = getnext(sel->next, tsel)))
 			sel = c;
 	}