From bfabd3bdab6b357a79ea092a03383bbaf1321866 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: --- 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 4976a3d7e..47507181c 100644 --- a/hw/xwayland/xwayland-xtest.c +++ b/hw/xwayland/xwayland-xtest.c @@ -854,6 +854,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;