mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-08 11:19:14 +02:00
tools/record: fix indentation for libinput events
Commit0cdf459643tools/record: get rid of indent push/pop, replace with fixed indents Introduced some magic to detect if there's a '-' at the start of the format string to fix the identation. This only works if the format string is constant though, leading to an indentation error when record is run with --with-libinput. Fixes0cdf459643Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
f22d193879
commit
200bc920ac
1 changed files with 4 additions and 1 deletions
|
|
@ -1291,7 +1291,10 @@ handle_libinput_events(struct record_context *ctx,
|
||||||
if (!e)
|
if (!e)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
iprintf(d->fp, I_EVENTTYPE, "%slibinput:\n", start_frame ? "- " : "");
|
if (start_frame)
|
||||||
|
iprintf(d->fp, I_EVENTTYPE, "- libinput:\n");
|
||||||
|
else
|
||||||
|
iprintf(d->fp, I_EVENTTYPE, "libinput:\n");
|
||||||
do {
|
do {
|
||||||
struct libinput_device *device = libinput_event_get_device(e);
|
struct libinput_device *device = libinput_event_get_device(e);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue