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 <ofourdan@redhat.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1620>
This commit is contained in:
Olivier Fourdan 2024-07-24 10:48:51 +02:00 committed by Marge Bot
parent b2198df55a
commit bfabd3bdab

View File

@ -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;