diff options
Diffstat (limited to 'test/touchpad-tap.c')
-rw-r--r-- | test/touchpad-tap.c | 40 |
1 files changed, 8 insertions, 32 deletions
diff --git a/test/touchpad-tap.c b/test/touchpad-tap.c index f6986e7..00afcdb 100644 --- a/test/touchpad-tap.c +++ b/test/touchpad-tap.c @@ -32,30 +32,6 @@ #include "libinput-util.h" #include "litest.h" -static inline void -enable_drag_lock(struct libinput_device *device) -{ - enum libinput_config_status status, expected; - - expected = LIBINPUT_CONFIG_STATUS_SUCCESS; - status = libinput_device_config_tap_set_drag_lock_enabled(device, - LIBINPUT_CONFIG_DRAG_LOCK_ENABLED); - - litest_assert_int_eq(status, expected); -} - -static inline void -disable_drag_lock(struct libinput_device *device) -{ - enum libinput_config_status status, expected; - - expected = LIBINPUT_CONFIG_STATUS_SUCCESS; - status = libinput_device_config_tap_set_drag_lock_enabled(device, - LIBINPUT_CONFIG_DRAG_LOCK_DISABLED); - - litest_assert_int_eq(status, expected); -} - START_TEST(touchpad_1fg_tap) { struct litest_device *dev = litest_current_device(); @@ -467,7 +443,7 @@ START_TEST(touchpad_1fg_multitap_n_drag_tap) ntaps; litest_enable_tap(dev->libinput_device); - enable_drag_lock(dev->libinput_device); + litest_enable_drag_lock(dev->libinput_device); litest_drain_events(li); @@ -540,7 +516,7 @@ START_TEST(touchpad_1fg_multitap_n_drag_tap_click) ntaps; litest_enable_tap(dev->libinput_device); - enable_drag_lock(dev->libinput_device); + litest_enable_drag_lock(dev->libinput_device); litest_drain_events(li); @@ -621,7 +597,7 @@ START_TEST(touchpad_1fg_tap_n_drag) struct libinput_event_pointer *ptrev __attribute__((unused)); litest_enable_tap(dev->libinput_device); - disable_drag_lock(dev->libinput_device); + litest_disable_drag_lock(dev->libinput_device); litest_drain_events(li); @@ -663,7 +639,7 @@ START_TEST(touchpad_1fg_tap_n_drag_draglock) struct libinput *li = dev->libinput; litest_enable_tap(dev->libinput_device); - enable_drag_lock(dev->libinput_device); + litest_enable_drag_lock(dev->libinput_device); litest_drain_events(li); @@ -704,7 +680,7 @@ START_TEST(touchpad_1fg_tap_n_drag_draglock_tap) struct libinput *li = dev->libinput; litest_enable_tap(dev->libinput_device); - enable_drag_lock(dev->libinput_device); + litest_enable_drag_lock(dev->libinput_device); litest_drain_events(li); @@ -746,7 +722,7 @@ START_TEST(touchpad_1fg_tap_n_drag_draglock_tap_click) struct libinput *li = dev->libinput; litest_enable_tap(dev->libinput_device); - enable_drag_lock(dev->libinput_device); + litest_enable_drag_lock(dev->libinput_device); litest_drain_events(li); @@ -791,7 +767,7 @@ START_TEST(touchpad_1fg_tap_n_drag_draglock_timeout) struct libinput *li = dev->libinput; litest_enable_tap(dev->libinput_device); - enable_drag_lock(dev->libinput_device); + litest_enable_drag_lock(dev->libinput_device); litest_drain_events(li); @@ -822,7 +798,7 @@ START_TEST(touchpad_2fg_tap_n_drag) struct libinput *li = dev->libinput; litest_enable_tap(dev->libinput_device); - disable_drag_lock(dev->libinput_device); + litest_disable_drag_lock(dev->libinput_device); litest_drain_events(li); |