Explorar o código

fixing the issue that new clients appear lowered

Anselm R. Garbe %!s(int64=19) %!d(string=hai) anos
pai
achega
e316cf53f6
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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);