Skip to content

Commit

Permalink
Fix windows sometimes not appearing
Browse files Browse the repository at this point in the history
  • Loading branch information
Demindiro authored and baskerville committed Feb 15, 2022
1 parent b0b8f86 commit 1560df3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bspwm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 1560df3

Please sign in to comment.