summaryrefslogtreecommitdiff
path: root/src
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-11 07:53:38 +1000
commitee6501d12f773d7b4a67a23463b91a3ce741b6a7 (patch)
treea1572ccdcbb189d2a074ea115bee08a632e37b5a /src
parent240d669bbacd1fce35fbe4973cdd9df6afb01fbf (diff)
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>
Diffstat (limited to 'src')
-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