forked from AuroraMiddleware/gtk
wayland: make key event log more explicit
With Wayland, GDK_DEBUG=events would log key events but not explicitly state whether the event is a key press or release, or if it's originating from a key repeat. Add some more verbosity to make sure these informations are logged on key delivery when GDK_DEBUG is set. https://bugzilla.gnome.org/show_bug.cgi?id=781767
This commit is contained in:
parent
bbe5385541
commit
502e0a3a9e
@ -2125,10 +2125,13 @@ deliver_key_event (GdkWaylandSeat *seat,
|
||||
_gdk_wayland_display_deliver_event (seat->display, event);
|
||||
|
||||
GDK_NOTE (EVENTS,
|
||||
g_message ("keyboard event, code %d, sym %d, "
|
||||
"string %s, mods 0x%x",
|
||||
g_message ("keyboard %s event%s, code %d, sym %d, "
|
||||
"string %s, mods 0x%x, with %i key%s pressed",
|
||||
(state ? "press" : "release"),
|
||||
(from_key_repeat ? " (repeat)" : ""),
|
||||
event->key.hardware_keycode, event->key.keyval,
|
||||
event->key.string, event->key.state));
|
||||
event->key.string, event->key.state,
|
||||
seat->nkeys, (seat->nkeys > 1 ? "s" : "")));
|
||||
|
||||
if (!xkb_keymap_key_repeats (xkb_keymap, key))
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user