[gtk/wip/matthiasc/popup2: 44/103] wayland: Improve debug output for events
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup2: 44/103] wayland: Improve debug output for events
- Date: Tue, 26 Mar 2019 00:11:36 +0000 (UTC)
commit 7de5876452d7ae79abd138c6160962997168bc43
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Mar 19 20:04:49 2019 -0400
wayland: Improve debug output for events
We were missing surfaces in a few places.
gdk/wayland/gdkdevice-wayland.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c
index 317a285f96..70a7a996de 100644
--- a/gdk/wayland/gdkdevice-wayland.c
+++ b/gdk/wayland/gdkdevice-wayland.c
@@ -1994,7 +1994,7 @@ keyboard_handle_leave (void *data,
GDK_DISPLAY_NOTE (seat->display, EVENTS,
g_message ("focus out, seat %p surface %p",
- seat, seat->keyboard_focus));
+ seat, event->any.surface));
_gdk_wayland_display_deliver_event (seat->display, event);
}
@@ -2119,10 +2119,11 @@ deliver_key_event (GdkWaylandSeat *seat,
_gdk_wayland_display_deliver_event (seat->display, event);
GDK_DISPLAY_NOTE (seat->display, EVENTS,
- g_message ("keyboard %s event%s, code %d, sym %d, "
+ g_message ("keyboard %s event%s, surface %p, code %d, sym %d, "
"mods 0x%x",
(state ? "press" : "release"),
(from_key_repeat ? " (repeat)" : ""),
+ event->any.surface,
event->key.hardware_keycode, event->key.keyval,
event->key.state));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]