Parcourir la source

fixing the issue that new clients appear lowered

Anselm R. Garbe il y a 19 ans
Parent
commit
e316cf53f6
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      client.c

+ 2 - 0
client.c

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