瀏覽代碼

barwindow raising

Anselm R. Garbe 18 年之前
父節點
當前提交
8f5f7a5b5a
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      main.c

+ 3 - 0
main.c

@@ -245,6 +245,9 @@ updatebarpos(void) {
 		XMoveWindow(dpy, barwin, sx, sy - bh);
 		break;
 	}
+	XRaiseWindow(dpy, barwin);
+	XSync(dpy, False);
+	while(XCheckMaskEvent(dpy, EnterWindowMask, &ev));
 }
 
 /* There's no way to check accesses to destroyed windows, thus those cases are