fixing the issue that new clients appear lowered
authorAnselm R. Garbe <arg@10kloc.org>
Mon, 04 Sep 2006 17:02:13 +0200
changeset 403 6413ea66b1c2
parent 402 c7d5ff57998d
child 404 4439d1168b6c
fixing the issue that new clients appear lowered
client.c
--- 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);