From d6a1e6fd79c7fbd961e1eeaa9df63377e519de3e Mon Sep 17 00:00:00 2001 From: Tony Crisci Date: Wed, 25 Oct 2017 18:51:15 -0400 Subject: xwm: dont flush if no events --- xwayland/xwm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3