summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2012-03-02 22:53:03 -0500
committerMatthias Clasen <mclasen@redhat.com>2012-03-02 23:02:57 -0500
commit9687ac33b8920d392ca4deb882287d9938d24c58 (patch)
treec3ec946198302332de2610f6384c442c1ef5cb95 /gdk
parent2d1d18b732bedbdec1b75cedf1d6f4987cecab99 (diff)
downloadgtk+-9687ac33b8920d392ca4deb882287d9938d24c58.tar.gz
xi2: Add some more debug output about scroll devices
Diffstat (limited to 'gdk')
-rw-r--r--gdk/x11/gdkdevicemanager-xi2.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdk/x11/gdkdevicemanager-xi2.c b/gdk/x11/gdkdevicemanager-xi2.c
index d1e6b3b131..b4a0256563 100644
--- a/gdk/x11/gdkdevicemanager-xi2.c
+++ b/gdk/x11/gdkdevicemanager-xi2.c
@@ -246,6 +246,13 @@ translate_device_classes (GdkDisplay *display,
else
direction = GDK_SCROLL_RIGHT;
+ GDK_NOTE (INPUT,
+ g_message ("\n\tscroll valuator %d: %s",
+ scroll_info->number,
+ scroll_info->scroll_type == XIScrollTypeVertical
+ ? "vertical"
+ : "horizontal"));
+
_gdk_x11_device_xi2_add_scroll_valuator (GDK_X11_DEVICE_XI2 (device),
scroll_info->number,
direction);