mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-08 11:19:14 +02:00
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>
This commit is contained in:
parent
240d669bba
commit
ee6501d12f
1 changed files with 1 additions and 1 deletions
|
|
@ -3105,7 +3105,7 @@ libinput_device_config_accel_get_default_profile(struct libinput_device *device)
|
||||||
if (!libinput_device_config_accel_is_available(device))
|
if (!libinput_device_config_accel_is_available(device))
|
||||||
return LIBINPUT_CONFIG_ACCEL_PROFILE_NONE;
|
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
|
LIBINPUT_EXPORT enum libinput_config_status
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue