mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 08:00:08 +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. Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1299>
This commit is contained in:
parent
537552480d
commit
e45cd2bc13
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;
|
_autofree_ char *size = NULL;
|
||||||
|
|
||||||
#define changed_sym(ev, ax) \
|
#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)) {
|
if (libinput_tablet_tool_has_tilt(tool)) {
|
||||||
x = libinput_event_tablet_tool_get_tilt_x(t);
|
x = libinput_event_tablet_tool_get_tilt_x(t);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue