Browse Source

hotfixing with sanders hint

Anselm R. Garbe 19 năm trước cách đây
mục cha
commit
95d8423823
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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);