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>
dev
Marek Chalupa 9 years ago committed by Bryce Harrington
parent 43af680abf
commit a1f3f3c9f2
  1. 1
      xwayland/window-manager.c

@ -1979,6 +1979,7 @@ weston_wm_handle_event(int fd, uint32_t mask, void *data)
count++; count++;
} }
if (count != 0)
xcb_flush(wm->conn); xcb_flush(wm->conn);
return count; return count;

Loading…
Cancel
Save