[gtk+] xi2: Improve pointer emulation debug reporting
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] xi2: Improve pointer emulation debug reporting
- Date: Thu, 11 Apr 2013 14:56:21 +0000 (UTC)
commit b0121ed0a15743bc518d5d3e02beb4fadd43cc09
Author: David King <amigadave amigadave com>
Date: Thu Apr 11 14:29:11 2013 +0100
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
gdk/x11/gdkdevicemanager-xi2.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gdk/x11/gdkdevicemanager-xi2.c b/gdk/x11/gdkdevicemanager-xi2.c
index db2ba28..751343a 100644
--- a/gdk/x11/gdkdevicemanager-xi2.c
+++ b/gdk/x11/gdkdevicemanager-xi2.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]