[gtk+/gtk-3-4] XI2: More logging for smooth scrolling



commit fa8e6f7857e9b4afba227c3108111f359dc826d5
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Apr 22 12:50:29 2012 -0400

    XI2: More logging for smooth scrolling
    
    In addition to the delta, log device information.
    This was triggered by
    https://bugzilla.gnome.org/show_bug.cgi?id=673644

 gdk/x11/gdkdevicemanager-xi2.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gdk/x11/gdkdevicemanager-xi2.c b/gdk/x11/gdkdevicemanager-xi2.c
index c15e82d..6a08dd5 100644
--- a/gdk/x11/gdkdevicemanager-xi2.c
+++ b/gdk/x11/gdkdevicemanager-xi2.c
@@ -1318,7 +1318,9 @@ gdk_x11_device_manager_xi2_translate_event (GdkEventTranslator *translator,
             event->scroll.direction = GDK_SCROLL_SMOOTH;
 
             GDK_NOTE(EVENTS,
-                     g_message ("smooth scroll:\twindow %ld\n\tdeltas: %f %f",
+                     g_message ("smooth scroll: %s\n\tdevice: %u\n\tsource device: %u\n\twindow %ld\n\tdeltas: %f %f",
+                                (xev->flags & XIPointerEmulated) ? "emulated" : "",
+                                xev->deviceid, xev->sourceid,
                                 xev->event, delta_x, delta_y));
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]