[gtk+] xi2: add some debug output for smooth scroll events
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] xi2: add some debug output for smooth scroll events
- Date: Fri, 2 Mar 2012 14:57:44 +0000 (UTC)
commit 482f04c89c12e088775f78058145901e93ff8fed
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Mar 2 09:55:55 2012 -0500
xi2: add some debug output for smooth scroll events
gdk/x11/gdkdevicemanager-xi2.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/gdk/x11/gdkdevicemanager-xi2.c b/gdk/x11/gdkdevicemanager-xi2.c
index 8479464..d1e6b3b 100644
--- a/gdk/x11/gdkdevicemanager-xi2.c
+++ b/gdk/x11/gdkdevicemanager-xi2.c
@@ -1312,6 +1312,11 @@ gdk_x11_device_manager_xi2_translate_event (GdkEventTranslator *translator,
event->scroll.type = GDK_SCROLL;
event->scroll.direction = GDK_SCROLL_SMOOTH;
+ GDK_NOTE(EVENTS,
+ g_message ("smooth scroll:\twindow %ld\n\tdeltas: %f %f",
+ xev->event, delta_x, delta_y));
+
+
event->scroll.window = window;
event->scroll.time = xev->time;
event->scroll.x = (gdouble) xev->event_x;
@@ -1500,7 +1505,7 @@ gdk_x11_device_manager_xi2_translate_event (GdkEventTranslator *translator,
}
}
break;
-#endif
+#endif /* XINPUT_2_2 */
case XI_Enter:
case XI_Leave:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]