[PATCH xserver 4/4 v2] xwayland: sync event queue to check compositor reply
Olivier Fourdan
ofourdan at redhat.com
Mon May 23 16:11:44 UTC 2016
Read and dispatch pending Wayland events to make sure we do not miss a
possible reply from the compositor prior to discard a key repeat.
Signed-off-by: Olivier Fourdan <ofourdan at redhat.com>
---
v2: no change, just keep the patch series together.
hw/xwayland/xwayland-input.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/hw/xwayland/xwayland-input.c b/hw/xwayland/xwayland-input.c
index 236033b..bcfce35 100644
--- a/hw/xwayland/xwayland-input.c
+++ b/hw/xwayland/xwayland-input.c
@@ -559,6 +559,9 @@ keyboard_check_repeat (DeviceIntPtr dev, XkbSrvInfoPtr xkbi, unsigned key)
struct wl_callback *callback;
struct sync_pending *p;
+ /* Make sure we didn't miss a possible reply from the compositor */
+ xwl_sync_events (xwl_screen);
+
xorg_list_for_each_entry(p, &xwl_seat->sync_pending, l)
if (p->pending_dev == dev) {
ErrorF("Key repeat discarded, Wayland compositor doesn't "
--
2.7.4
More information about the xorg-devel
mailing list