reducing focus calls (sanders patch)
authorAnselm R. Garbe <arg@10kloc.org>
Mon, 04 Sep 2006 10:10:08 +0200
changeset 401 1eb2eb405653
parent 400 052657ff2e7b
child 402 c7d5ff57998d
reducing focus calls (sanders patch)
view.c
--- a/view.c	Mon Sep 04 08:55:49 2006 +0200
+++ b/view.c	Mon Sep 04 10:10:08 2006 +0200
@@ -68,9 +68,8 @@
 		else
 			ban(c);
 	}
-	if(!(fc = sel) || !isvisible(fc))
-		fc = getnext(clients);
-	focus(fc);
+	if(!sel || !isvisible(sel))
+		focus(getnext(clients));
 	restack();
 }
 
@@ -131,9 +130,8 @@
 		else
 			ban(c);
 	}
-	if(!(fc = sel) || !isvisible(fc))
-		fc = getnext(clients);
-	focus(fc);
+	if(!sel || !isvisible(sel))
+		focus(getnext(clients));
 	restack();
 }