mirror of
https://github.com/swaywm/sway.git
synced 2025-11-04 13:29:52 -05:00
ipc: add LIBINPUT_CONFIG_ACCEL_PROFILE_CUSTOM entry
This was introduced in the last libinput release.
Fixes the following error:
../sway/ipc-json.c:928:17: error: enumeration value 'LIBINPUT_CONFIG_ACCEL_PROFILE_CUSTOM' not handled in switch [-Werror=switch]
928 | switch (libinput_device_config_accel_get_profile(device)) {
| ^~~~~~
This commit is contained in:
parent
6701b90c55
commit
dee032d0a0
2 changed files with 10 additions and 0 deletions
|
|
@ -935,6 +935,11 @@ static json_object *describe_libinput_device(struct libinput_device *device) {
|
|||
case LIBINPUT_CONFIG_ACCEL_PROFILE_ADAPTIVE:
|
||||
accel_profile = "adaptive";
|
||||
break;
|
||||
#if HAVE_LIBINPUT_CONFIG_ACCEL_PROFILE_CUSTOM
|
||||
case LIBINPUT_CONFIG_ACCEL_PROFILE_CUSTOM:
|
||||
accel_profile = "custom";
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
json_object_object_add(object, "accel_profile",
|
||||
json_object_new_string(accel_profile));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue