client.c
changeset 403 6413ea66b1c2
parent 400 052657ff2e7b
child 405 dd44dc937e8b
--- a/client.c	Mon Sep 04 12:23:41 2006 +0200
+++ b/client.c	Mon Sep 04 17:02:13 2006 +0200
@@ -254,6 +254,8 @@
 	clients = c;
 
 	settitle(c);
+	if(isvisible(c))
+		sel = c;
 	arrange(NULL);
 	XMapWindow(dpy, c->win);
 	XMapWindow(dpy, c->twin);