diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2019-09-25 16:49:08 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2019-09-25 16:49:08 +1000 |
commit | 67151ddcf59aae5ab9e08763e30d35167853c9a1 (patch) | |
tree | 8027d95218496b0e9420023f1e1b01bfb82dbba0 /test/test-pointer.c | |
parent | 058e19806780d16afbbb43ea9a909ab4130ed8da (diff) | |
download | libinput-67151ddcf59aae5ab9e08763e30d35167853c9a1.tar.gz |
test: don't use debounced clicks for the middle button emulation click
This used to work under valgrind up to F30 but with the F31 beta something is
now a tad slower so it triggers the timeouts before the middle emulation kicks
in.
The middlebutton timeout is 50ms and the first debounce timeout is 30ms, so if
we're late by 20ms, well, there goes the timeout.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test/test-pointer.c')
-rw-r--r-- | test/test-pointer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test-pointer.c b/test/test-pointer.c index 6561489a..4ec32f89 100644 --- a/test/test-pointer.c +++ b/test/test-pointer.c @@ -1171,8 +1171,8 @@ START_TEST(pointer_scroll_button_middle_emulation) litest_drain_events(li); - litest_button_click_debounced(dev, li, BTN_LEFT, 1); - litest_button_click_debounced(dev, li, BTN_RIGHT, 1); + litest_button_click(dev, BTN_LEFT, 1); + litest_button_click(dev, BTN_RIGHT, 1); libinput_dispatch(li); litest_timeout_buttonscroll(); libinput_dispatch(li); @@ -1184,8 +1184,8 @@ START_TEST(pointer_scroll_button_middle_emulation) libinput_dispatch(li); - litest_button_click_debounced(dev, li, BTN_LEFT, 0); - litest_button_click_debounced(dev, li, BTN_RIGHT, 0); + litest_button_click(dev, BTN_LEFT, 0); + litest_button_click(dev, BTN_RIGHT, 0); libinput_dispatch(li); litest_assert_scroll(li, LIBINPUT_POINTER_AXIS_SCROLL_VERTICAL, -1); |