diff options
-rw-r--r-- | xwayland/xwm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xwayland/xwm.c b/xwayland/xwm.c index 213e633a..27d8bff9 100644 --- a/xwayland/xwm.c +++ b/xwayland/xwm.c @@ -739,7 +739,10 @@ static int x11_event_handler(int fd, uint32_t mask, void *data) { free(event); } - xcb_flush(xwm->xcb_conn); + if (count) { + xcb_flush(xwm->xcb_conn); + } + return count; } |