mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 04:30:06 +01:00
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.
(cherry picked from commit e45cd2bc13)
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1309>
This commit is contained in:
parent
cef5d5f0f1
commit
17fa8fc155
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue