浏览代码

fixing the issue that new clients appear lowered

Anselm R. Garbe 19 年之前
父节点
当前提交
e316cf53f6
共有 1 个文件被更改,包括 2 次插入0 次删除
  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);