mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-25 08:10:05 +01:00
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: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1041>
This commit is contained in:
parent
41b3f5cc29
commit
09fd1cdd98
1 changed files with 6 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue