diff options
| author | Tony Crisci <tony@dubstepdish.com> | 2017-10-25 18:51:15 -0400 | 
|---|---|---|
| committer | Tony Crisci <tony@dubstepdish.com> | 2017-10-25 18:51:15 -0400 | 
| commit | d6a1e6fd79c7fbd961e1eeaa9df63377e519de3e (patch) | |
| tree | 7fadeebea2b47b312c0631fb3a454640ffebf268 | |
| parent | b443b9a9987d240e7e5f5ecb766f5ccd7987e35f (diff) | |
| download | wlroots-d6a1e6fd79c7fbd961e1eeaa9df63377e519de3e.tar.xz | |
xwm: dont flush if no events
| -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;  } | 
