diff options
author | D.B <thejan.2009@gmail.com> | 2017-10-13 22:50:59 +0200 |
---|---|---|
committer | D.B <thejan.2009@gmail.com> | 2017-10-14 07:29:23 +0200 |
commit | 7cdc19d57f39127e8460e34b89f8d765cf4d5374 (patch) | |
tree | bc0f81b0798c7670b79bf20879843ad1a588eeef /backend/libinput/pointer.c | |
parent | 1df9b0bc1374a517e81fa679f277da417dd14fda (diff) |
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.
Diffstat (limited to 'backend/libinput/pointer.c')
-rw-r--r-- | backend/libinput/pointer.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |