[PATCH libinput 2/8] tools: print the tool ID in event-debug
Peter Hutterer
peter.hutterer at who-t.net
Wed Nov 11 13:12:56 PST 2015
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
tools/event-debug.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/tools/event-debug.c b/tools/event-debug.c
index 6e5f8a8..05fb1a7 100644
--- a/tools/event-debug.c
+++ b/tools/event-debug.c
@@ -490,8 +490,11 @@ print_proximity_event(struct libinput_event *ev)
abort();
}
- printf("\t%s (%#" PRIx64 ") %s",
- tool_str, libinput_tool_get_serial(tool), state_str);
+ printf("\t%s (%#" PRIx64 ", id %#" PRIx64 ") %s",
+ tool_str,
+ libinput_tool_get_serial(tool),
+ libinput_tool_get_tool_id(tool),
+ state_str);
printf("\taxes:");
if (libinput_tool_has_axis(tool, LIBINPUT_TABLET_AXIS_DISTANCE))
--
2.4.3
More information about the wayland-devel
mailing list