aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-10-25 18:51:15 -0400
committerTony Crisci <tony@dubstepdish.com>2017-10-25 18:51:15 -0400
commitd6a1e6fd79c7fbd961e1eeaa9df63377e519de3e (patch)
tree7fadeebea2b47b312c0631fb3a454640ffebf268
parentb443b9a9987d240e7e5f5ecb766f5ccd7987e35f (diff)
xwm: dont flush if no events
-rw-r--r--xwayland/xwm.c5
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;
}