X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/37e062b0ed475fb6d9030f05b353c4fb79b7c6e5..8439369db9e340bf260efb1c29282ccb5d224194:/main.c diff --git a/main.c b/main.c index 614faa0..af1f1a6 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,8 @@ updatebarpos(void) { XMoveWindow(dpy, barwin, sx, sy - bh); break; } + XSync(dpy, False); + while(XCheckMaskEvent(dpy, EnterWindowMask, &ev)); } /* There's no way to check accesses to destroyed windows, thus those cases are