From 5a41b74c5c22c2efbaed883a146f55c4715c19b3 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 22 Apr 2012 12:50:29 -0400 Subject: [PATCH] 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 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gdk/x11/gdkdevicemanager-xi2.c b/gdk/x11/gdkdevicemanager-xi2.c index c15e82d8e2..6a08dd5b44 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));