X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/37e062b0ed475fb6d9030f05b353c4fb79b7c6e5..ce450c5bf16f7e86803fe7f5d41b0d1f9bdf3e52:/main.c diff --git a/main.c b/main.c index 614faa0..16cf806 100644 --- a/main.c +++ b/main.c @@ -227,6 +227,8 @@ quit(const char *arg) { void updatebarpos(void) { + XEvent ev; + wax = sx; way = sy; wah = sh; @@ -245,6 +247,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