From 3b4d8509ccf6b17d01a496e5d0d66892ffd5bde3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Thu, 4 Dec 2014 11:44:10 +0800 Subject: [PATCH] test: Don't send two motion events when button scrolling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Peter Hutterer Signed-off-by: Peter Hutterer --- test/litest.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/test/litest.c b/test/litest.c index e2ec90d6..2ab802bc 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);