summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2016-04-08 15:51:27 +0800
committerPeter Hutterer <peter.hutterer@who-t.net>2016-04-12 06:49:35 +1000
commit364e0bb131b204252300f77909dbd6db92fdbc2a (patch)
tree22dace9ecab3344bc4e22e15e63f33b59e3572dc
parent1845e549f412478e9e5a668124856d1f50b9bb1c (diff)
downloadlibinput-364e0bb131b204252300f77909dbd6db92fdbc2a.tar.gz
libinput: Actually return the default accel profile
We just returned the current profile instead of the default one. Fix that. Signed-off-by: Jonas Ådahl <jadahl@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit ee6501d12f773d7b4a67a23463b91a3ce741b6a7)
-rw-r--r--src/libinput.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libinput.c b/src/libinput.c
index 14808780..b6e660a1 100644
--- a/src/libinput.c
+++ b/src/libinput.c
@@ -3105,7 +3105,7 @@ libinput_device_config_accel_get_default_profile(struct libinput_device *device)
if (!libinput_device_config_accel_is_available(device))
return LIBINPUT_CONFIG_ACCEL_PROFILE_NONE;
- return device->config.accel->get_profile(device);
+ return device->config.accel->get_default_profile(device);
}
LIBINPUT_EXPORT enum libinput_config_status