mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 02:20:30 +01:00
evdev: return an error if the profile change failed
If we get to this point, we've already ruled out invalid arguments and this shouldn't really fail, so let's reply with UNSUPPORTED instead. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
fde4255f29
commit
7525aea272
1 changed files with 1 additions and 0 deletions
|
|
@ -1025,6 +1025,7 @@ evdev_accel_config_set_profile(struct libinput_device *libinput_device,
|
|||
filter_destroy(filter);
|
||||
} else {
|
||||
device->pointer.filter = filter;
|
||||
return LIBINPUT_CONFIG_STATUS_UNSUPPORTED;
|
||||
}
|
||||
|
||||
return LIBINPUT_CONFIG_STATUS_SUCCESS;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue