diff options
author | 2023-03-26 23:27:40 +0200 | |
---|---|---|
committer | 2023-03-27 10:56:16 +0200 | |
commit | dee032d0a0ecd958c902b88302dc59703d703c7f (patch) | |
tree | eaf0283fdabfb854b8813b397e58c3b536470120 /sway | |
parent | Add a .mailmap file (diff) | |
download | sway-dee032d0a0ecd958c902b88302dc59703d703c7f.tar.gz sway-dee032d0a0ecd958c902b88302dc59703d703c7f.tar.zst sway-dee032d0a0ecd958c902b88302dc59703d703c7f.zip |
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)) {
| ^~~~~~
Diffstat (limited to 'sway')
-rw-r--r-- | sway/ipc-json.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/ipc-json.c b/sway/ipc-json.c index 51e6a995..c7cbea01 100644 --- a/sway/ipc-json.c +++ b/sway/ipc-json.c | |||
@@ -935,6 +935,11 @@ static json_object *describe_libinput_device(struct libinput_device *device) { | |||
935 | case LIBINPUT_CONFIG_ACCEL_PROFILE_ADAPTIVE: | 935 | case LIBINPUT_CONFIG_ACCEL_PROFILE_ADAPTIVE: |
936 | accel_profile = "adaptive"; | 936 | accel_profile = "adaptive"; |
937 | break; | 937 | break; |
938 | #if HAVE_LIBINPUT_CONFIG_ACCEL_PROFILE_CUSTOM | ||
939 | case LIBINPUT_CONFIG_ACCEL_PROFILE_CUSTOM: | ||
940 | accel_profile = "custom"; | ||
941 | break; | ||
942 | #endif | ||
938 | } | 943 | } |
939 | json_object_object_add(object, "accel_profile", | 944 | json_object_object_add(object, "accel_profile", |
940 | json_object_new_string(accel_profile)); | 945 | json_object_new_string(accel_profile)); |