mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-27 11:30:06 +01:00
evdev-touchpad: don't post motion events for 0/0 deltas
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
c81e1235c6
commit
993a3b8ebd
1 changed files with 6 additions and 5 deletions
|
|
@ -533,11 +533,12 @@ touchpad_update_state(struct touchpad_dispatch *touchpad, uint32_t time)
|
|||
filter_motion(touchpad, &dx, &dy, time);
|
||||
|
||||
if (touchpad->finger_state == TOUCHPAD_FINGERS_ONE) {
|
||||
pointer_notify_motion(
|
||||
base,
|
||||
time,
|
||||
li_fixed_from_double(dx),
|
||||
li_fixed_from_double(dy));
|
||||
if (dx != 0 || dy != 0)
|
||||
pointer_notify_motion(
|
||||
base,
|
||||
time,
|
||||
li_fixed_from_double(dx),
|
||||
li_fixed_from_double(dy));
|
||||
} else if (touchpad->finger_state == TOUCHPAD_FINGERS_TWO) {
|
||||
if (dx != 0.0)
|
||||
pointer_notify_axis(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue