[PATCH libinput 03/24] touchpad: Use an axis_frame event to mark the end of scroll changes

Carlos Garnacho carlosg at gnome.org
Mon Apr 21 10:11:12 PDT 2014


If both v/h scroll axes change, users may process both changes at once when
this event is received.

Signed-off-by: Carlos Garnacho <carlosg at gnome.org>
---
 src/evdev-touchpad.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/evdev-touchpad.c b/src/evdev-touchpad.c
index 1a48441..7312d11 100644
--- a/src/evdev-touchpad.c
+++ b/src/evdev-touchpad.c
@@ -552,6 +552,9 @@ touchpad_update_state(struct touchpad_dispatch *touchpad, uint32_t time)
 					time,
 					LIBINPUT_POINTER_AXIS_VERTICAL_SCROLL,
 					li_fixed_from_double(dy));
+
+			if (dx != 0.0 || dy != 0.0)
+				pointer_notify_axis_frame(base, time);
 		}
 	}
 
-- 
1.9.0



More information about the wayland-devel mailing list