From 7cdc19d57f39127e8460e34b89f8d765cf4d5374 Mon Sep 17 00:00:00 2001 From: "D.B" Date: Fri, 13 Oct 2017 22:50:59 +0200 Subject: Fix duplicated pointer axis events In pointer.c, some axis event was emitted even if the event pointer did not have current axis. In X11 backend pointer scroll events seem to be composed of both BUTTON_PRESS and BUTTON_RELEASE. Therefore we should skip one of them (RELEASE) to avoid event duplication. --- backend/libinput/pointer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend/libinput/pointer.c') diff --git a/backend/libinput/pointer.c b/backend/libinput/pointer.c index 005c9516..ad9b8f02 100644 --- a/backend/libinput/pointer.c +++ b/backend/libinput/pointer.c @@ -128,7 +128,7 @@ void handle_pointer_axis(struct libinput_event *event, } wlr_event.delta = libinput_event_pointer_get_axis_value( pevent, axies[i]); + wl_signal_emit(&wlr_dev->pointer->events.axis, &wlr_event); } - wl_signal_emit(&wlr_dev->pointer->events.axis, &wlr_event); } } -- cgit v1.2.3