hotfixing with sanders hint
authorAnselm R. Garbe <arg@10kloc.org>
Mon, 04 Sep 2006 17:21:15 +0200
changeset 405 dd44dc937e8b
parent 404 4439d1168b6c
child 406 cbf5907816cc
hotfixing with sanders hint
client.c
--- a/client.c	Mon Sep 04 17:18:01 2006 +0200
+++ b/client.c	Mon Sep 04 17:21:15 2006 +0200
@@ -254,8 +254,10 @@
 	clients = c;
 
 	settitle(c);
-	if(isvisible(c))
+	if(isvisible(c)) {
+		focus(NULL);
 		sel = c;
+	}
 	arrange(NULL);
 	XMapWindow(dpy, c->win);
 	XMapWindow(dpy, c->twin);