changeset 405:dd44dc937e8b

hotfixing with sanders hint
author Anselm R. Garbe <arg@10kloc.org>
date Mon, 04 Sep 2006 17:21:15 +0200
parents 4439d1168b6c
children cbf5907816cc
files client.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);