xwayland/ei: Log the type name of unhandled events

Currently, we would log only the event type, use the libei API to also
log the name in plain text, so we can quickly identify the events we're
missing out.

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:52:59 +02:00 committed by Marge Bot
parent bfabd3bdab
commit 1a42fe40d0

View File

@ -859,7 +859,7 @@ xwl_handle_ei_event(int fd, int ready, void *data)
/* Don't care */ /* Don't care */
break; break;
default: default:
error_ei("Unhandled event %d\n", type); error_ei("Unhandled event %s (%d)\n", ei_event_type_to_string(type), type);
break; break;
} }
ei_event_unref(e); ei_event_unref(e);