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
This commit is contained in:
Matthias Clasen 2012-04-22 12:50:29 -04:00
parent 9107074795
commit 5a41b74c5c

View File

@ -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));