changeset 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 (2006-09-04)
parents c7d5ff57998d
children 4439d1168b6c
files client.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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);