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>
(cherry picked from commit 1a42fe40d0)
This commit is contained in:
Olivier Fourdan 2024-07-24 10:52:59 +02:00 committed by Alan Coopersmith
parent 816d4f0030
commit beb8ffff8c

View file

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