diff client.c @ 403:6413ea66b1c2

fixing the issue that new clients appear lowered
author Anselm R. Garbe <arg@10kloc.org>
date Mon, 04 Sep 2006 17:02:13 +0200
parents 052657ff2e7b
children dd44dc937e8b
line wrap: on
line diff
--- 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);