tools/debug-events: rework touch event printing
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 20 Oct 2020 23:06:16 +0000 (09:06 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 20 Oct 2020 23:09:50 +0000 (09:09 +1000)
commit1ebdc605762967fe32b23816b083b17c53829d7a
tree0c56fab5f4db0f06b1cbdaac85c61558ba5349f5
parent08999899cbd80e8ed22712cc2de579583d72a287
tools/debug-events: rework touch event printing

Previously, touch up events did not contain the slot number which makes the
logs ambiguous (e.g. see the one in #532). Fix that, and since doing so would
require extra conditions anyway get rid of the current with/without coords
function and just handle it all inside one function instead.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
tools/libinput-debug-events.c