mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-05 06:40:13 +01:00
tools/record: rework the event printing
For historical (but not very good) reasons, libinput record printed events from the first device to the output file (or stdout) and buffered everything else. On ctrl+c, the other devices' descriptions and the buffered events were appended to the output file. This makes the printing code rather complex. Simplify it by giving each device a separate FILE* - the first device points to the real output file, the others to a tempfile. On Ctrl+C we just append those tempfiles to the real output file one-by-one and done. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
bacf4e5a62
commit
33b30d4631
1 changed files with 407 additions and 559 deletions
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue