summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2014-12-04 11:44:10 +0800
committerPeter Hutterer <peter.hutterer@who-t.net>2014-12-05 11:54:18 +1000
commit3b4d8509ccf6b17d01a496e5d0d66892ffd5bde3 (patch)
tree30caec2a1bb9b963a7870d795a8cd702739820c9
parent93eca929aeb4376aea974566a24277708da84de1 (diff)
downloadlibinput-3b4d8509ccf6b17d01a496e5d0d66892ffd5bde3.tar.gz
test: Don't send two motion events when button scrolling
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@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--test/litest.c6
1 files changed, 0 insertions, 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);