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:
Jonas Ådahl 2016-04-08 15:51:27 +08:00 committed by Peter Hutterer
parent 240d669bba
commit ee6501d12f

View file

@ -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