diff --git a/src/bspwm.c b/src/bspwm.c index 9c6be76c..8b9b5d14 100644 --- a/src/bspwm.c +++ b/src/bspwm.c @@ -36,6 +36,7 @@ #include #include #include +#include #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);