mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 00:30:08 +00:00
xi2: Improve pointer emulation debug reporting
Reporting "true" or "false" is nicer than the value of the flag. https://bugzilla.gnome.org/show_bug.cgi?id=697795
This commit is contained in:
parent
645f6435e5
commit
b0121ed0a1
@ -1408,11 +1408,11 @@ gdk_x11_device_manager_xi2_translate_event (GdkEventTranslator *translator,
|
||||
GdkDevice *source_device;
|
||||
|
||||
GDK_NOTE(EVENTS,
|
||||
g_message ("touch %s:\twindow %ld\n\ttouch id: %u\n\tpointer emulating: %d",
|
||||
g_message ("touch %s:\twindow %ld\n\ttouch id: %u\n\tpointer emulating: %s",
|
||||
ev->evtype == XI_TouchBegin ? "begin" : "end",
|
||||
xev->event,
|
||||
xev->detail,
|
||||
xev->flags & XITouchEmulatingPointer));
|
||||
xev->flags & XITouchEmulatingPointer ? "true" : "false"));
|
||||
|
||||
if (ev->evtype == XI_TouchBegin)
|
||||
event->touch.type = GDK_TOUCH_BEGIN;
|
||||
@ -1481,10 +1481,10 @@ gdk_x11_device_manager_xi2_translate_event (GdkEventTranslator *translator,
|
||||
GdkDevice *source_device;
|
||||
|
||||
GDK_NOTE(EVENTS,
|
||||
g_message ("touch update:\twindow %ld\n\ttouch id: %u\n\tpointer emulating: %d",
|
||||
g_message ("touch update:\twindow %ld\n\ttouch id: %u\n\tpointer emulating: %s",
|
||||
xev->event,
|
||||
xev->detail,
|
||||
xev->flags & XITouchEmulatingPointer));
|
||||
xev->flags & XITouchEmulatingPointer ? "true" : "false"));
|
||||
|
||||
event->touch.window = window;
|
||||
event->touch.sequence = GUINT_TO_POINTER (xev->detail);
|
||||
|
Loading…
Reference in New Issue
Block a user