]> git.lizzy.rs Git - bspwm.git/commitdiff
Fix windows sometimes not appearing
authorDavid Hoppenbrouwers <david@salt-inc.org>
Mon, 24 Jan 2022 23:09:42 +0000 (00:09 +0100)
committerBastien Dejean <nihilhill@gmail.com>
Tue, 15 Feb 2022 11:03:36 +0000 (12:03 +0100)
Fixes #935.

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);