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>
(cherry picked from commit 1a42fe40d0)

Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1635>
This commit is contained in:
Olivier Fourdan 2024-07-24 10:52:59 +02:00
parent ce7fb8139a
commit fac3486a66

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