From e45cd2bc13077d7e1d27e6285bf184d88db0c60b Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 18 Aug 2025 12:01:12 +1000 Subject: [PATCH] util: print nonchanged axis with a space instead of a * When printing tablet events always print a '*' or ' ' suffix to ensure the alignment of the next field matches. We're using a tab to align after each field so if the string length doesn't match, our events may print at different tab stops. Part-of: --- src/util-libinput.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util-libinput.c b/src/util-libinput.c index 690c0f22..23a38683 100644 --- a/src/util-libinput.c +++ b/src/util-libinput.c @@ -404,7 +404,7 @@ print_tablet_axes(struct libinput_event_tablet_tool *t) _autofree_ char *size = NULL; #define changed_sym(ev, ax) \ - (libinput_event_tablet_tool_##ax##_has_changed(ev) ? "*" : "") + (libinput_event_tablet_tool_##ax##_has_changed(ev) ? "*" : " ") if (libinput_tablet_tool_has_tilt(tool)) { x = libinput_event_tablet_tool_get_tilt_x(t);