JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
raising the barwin has no effect becasue of restack
[dwm.git] / main.c
diff --git a/main.c b/main.c
index 614faa0..af1f1a6 100644 (file)
--- 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