Make sure that changing the accel profile doesn't affect the default
accel profile.

Signed-off-by: Jonas Ådahl <[email protected]>
---
 test/pointer.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/test/pointer.c b/test/pointer.c
index 32e3fd2..a34740a 100644
--- a/test/pointer.c
+++ b/test/pointer.c
@@ -1079,6 +1079,9 @@ START_TEST(pointer_accel_profile_defaults)
        profile = libinput_device_config_accel_get_profile(device);
        ck_assert_int_eq(profile, LIBINPUT_CONFIG_ACCEL_PROFILE_FLAT);
 
+       profile = libinput_device_config_accel_get_default_profile(device);
+       ck_assert_int_eq(profile, LIBINPUT_CONFIG_ACCEL_PROFILE_ADAPTIVE);
+
        status = libinput_device_config_accel_set_profile(device,
                                                          
LIBINPUT_CONFIG_ACCEL_PROFILE_ADAPTIVE);
        ck_assert_int_eq(status, LIBINPUT_CONFIG_STATUS_SUCCESS);
-- 
2.4.3

_______________________________________________
wayland-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to