diff options
author | Marek Chalupa <mchqwerty@gmail.com> | 2015-08-12 09:55:12 +0200 |
---|---|---|
committer | Bryce Harrington <bryce@osg.samsung.com> | 2015-09-22 18:35:01 -0700 |
commit | a1f3f3c9f209be52d19793d36bbda68ca24a714e (patch) | |
tree | 474c0748e8bc9073668e774ad11608ec9a883ce0 /xwayland | |
parent | 43af680abfb923a2d7a75dd0ac8f396c9a049d60 (diff) | |
download | weston-a1f3f3c9f209be52d19793d36bbda68ca24a714e.tar.gz weston-a1f3f3c9f209be52d19793d36bbda68ca24a714e.tar.bz2 weston-a1f3f3c9f209be52d19793d36bbda68ca24a714e.zip |
xwm: flush xcb connection only when we processed some event
xwayland source is checked, so it dispatches twice on any event.
If the other turn has no events to dispatch, we flush the connection
redundantly
v2. do not flood logs with 'unhandled event' messages
Signed-off-by: Marek Chalupa <mchqwerty@gmail.com>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
Diffstat (limited to 'xwayland')
-rw-r--r-- | xwayland/window-manager.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xwayland/window-manager.c b/xwayland/window-manager.c index f9544d88..db6b4379 100644 --- a/xwayland/window-manager.c +++ b/xwayland/window-manager.c @@ -1979,7 +1979,8 @@ weston_wm_handle_event(int fd, uint32_t mask, void *data) count++; } - xcb_flush(wm->conn); + if (count != 0) + xcb_flush(wm->conn); return count; } |