From 816d4f0030974971bcd18327c1e7c7ed3f397d4e Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Wed, 24 Jul 2024 10:48:51 +0200 Subject: [PATCH] xwayland/ei: Handle EI_EVENT_KEYBOARD_MODIFIERS Although we do not do anything with that event, handle it so we don't end up in the "Unhandled event" territory. Closes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1722 Fixes: a133334270 - xwayland: Add XTEST support using EIS Signed-off-by: Olivier Fourdan Part-of: (cherry picked from commit bfabd3bdab6b357a79ea092a03383bbaf1321866) --- hw/xwayland/xwayland-xtest.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/xwayland/xwayland-xtest.c b/hw/xwayland/xwayland-xtest.c index 1b870aa63..af7d02c07 100644 --- a/hw/xwayland/xwayland-xtest.c +++ b/hw/xwayland/xwayland-xtest.c @@ -852,6 +852,10 @@ xwl_handle_ei_event(int fd, int ready, void *data) /* All events dequeued and client has disconnected in the meantime */ xwl_ei_stop_emulating(xwl_ei_client); break; + case EI_EVENT_KEYBOARD_MODIFIERS: + debug_ei("Ignored event %s (%d)\n", ei_event_type_to_string(type), type); + /* Don't care */ + break; default: error_ei("Unhandled event %d\n", type); break;