Explorar el Código

hotfixing with sanders hint

Anselm R. Garbe hace 19 años
padre
commit
95d8423823
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      client.c

+ 3 - 1
client.c

@@ -254,8 +254,10 @@ manage(Window w, XWindowAttributes *wa)
 	clients = c;
 
 	settitle(c);
-	if(isvisible(c))
+	if(isvisible(c)) {
+		focus(NULL);
 		sel = c;
+	}
 	arrange(NULL);
 	XMapWindow(dpy, c->win);
 	XMapWindow(dpy, c->twin);