]> git.lizzy.rs Git - bspwm.git/blobdiff - src/bspwm.c
Fix windows sometimes not appearing
[bspwm.git] / src / bspwm.c
index 9c6be76c82972e5e5656a736b70003f6d85b679b..8b9b5d14b5d85149c0708831af930c0ef02a4dd2 100644 (file)
@@ -36,6 +36,7 @@
 #include <stdbool.h>
 #include <string.h>
 #include <xcb/xinerama.h>
+#include <xcb/xcb_aux.h>
 #include "types.h"
 #include "desktop.h"
 #include "monitor.h"
@@ -248,6 +249,7 @@ int main(int argc, char *argv[])
                        }
 
                        if (FD_ISSET(dpy_fd, &descriptors)) {
+                               xcb_aux_sync(dpy);
                                while ((event = xcb_poll_for_event(dpy)) != NULL) {
                                        handle_event(event);
                                        free(event);