瀏覽代碼

added visibility check to enternotify as well

arg@mmvi 19 年之前
父節點
當前提交
2511b5c675
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      event.c

+ 1 - 1
event.c

@@ -232,7 +232,7 @@ enternotify(XEvent *e) {
 	if(ev->mode != NotifyNormal || ev->detail == NotifyInferior)
 		return;
 
-	if((c = getclient(ev->window)) || (c = getctitle(ev->window)))
+	if(((c = getclient(ev->window)) || (c = getctitle(ev->window))) && isvisible(c))
 		focus(c);
 	else if(ev->window == root) {
 		issel = True;