[PATCH libinput 2/2] test: Don't send two motion events when button scrolling

Jonas Ådahl jadahl at gmail.com
Wed Dec 3 19:44:10 PST 2014


Button scrolling motion events don't pass through the acceleration
filter so no need to assume the initial event will be absorbed.

Signed-off-by: Jonas Ådahl <jadahl at gmail.com>
---
 test/litest.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/test/litest.c b/test/litest.c
index e2ec90d..2ab802b 100644
--- a/test/litest.c
+++ b/test/litest.c
@@ -810,12 +810,6 @@ litest_button_scroll(struct litest_device *dev,
 	litest_timeout_buttonscroll();
 	libinput_dispatch(li);
 
-	/* Send two deltas, as the first one may be eaten up by an
-	 * acceleration filter. */
-	litest_event(dev, EV_REL, REL_X, dx);
-	litest_event(dev, EV_REL, REL_Y, dy);
-	litest_event(dev, EV_SYN, SYN_REPORT, 0);
-
 	litest_event(dev, EV_REL, REL_X, dx);
 	litest_event(dev, EV_REL, REL_Y, dy);
 	litest_event(dev, EV_SYN, SYN_REPORT, 0);
-- 
1.8.5.1



More information about the wayland-devel mailing list