From: Peter Hutterer Date: Mon, 9 Sep 2024 05:30:05 +0000 (+1000) Subject: tools/debug-events: ignore old-style pointer axis events completely X-Git-Tag: 1.27.0~150 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=09fd1cdd98fd6064abe31cd507eeb413a53d5f09;p=platform%2Fupstream%2Flibinput.git tools/debug-events: ignore old-style pointer axis events completely Since they're interleaved with the more modern finger/wheel/continuous events they mess up our repeate count, preventing compression for those events. Part-of: --- diff --git a/tools/libinput-debug-events.c b/tools/libinput-debug-events.c index 6e92faee..4200ba8d 100644 --- a/tools/libinput-debug-events.c +++ b/tools/libinput-debug-events.c @@ -872,8 +872,12 @@ handle_and_print_events(struct libinput *li) while ((ev = libinput_get_event(li))) { enum libinput_event_type type = libinput_event_get_type(ev); - if (type != LIBINPUT_EVENT_POINTER_AXIS) - print_event_header(ev); + if (type == LIBINPUT_EVENT_POINTER_AXIS) { + libinput_event_destroy(ev); + continue; + } + + print_event_header(ev); switch (type) { case LIBINPUT_EVENT_NONE: