X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=main.c;h=af1f1a6bb0e8b0fa5e3462b728fce030b5daf0c5;hb=69dfcaa317f9519724bb179ba8254e73a7d7f38e;hp=614faa08cc129e82151c2a3a334f9e55d65dfae3;hpb=37e062b0ed475fb6d9030f05b353c4fb79b7c6e5;p=dwm.git 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