diff options
author | Simon Ser <contact@emersion.fr> | 2023-03-26 23:27:40 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2024-04-18 10:57:17 +0200 |
commit | 52acbebebc0929a5224d10e5982c5fd33f09e0e6 (patch) | |
tree | a55a495ffa19df4a13fa3d934898f5cb8fcbbb01 /sway/ipc-json.c | |
parent | build: bump version to 1.8.1 (diff) | |
download | sway-52acbebebc0929a5224d10e5982c5fd33f09e0e6.tar.gz sway-52acbebebc0929a5224d10e5982c5fd33f09e0e6.tar.zst sway-52acbebebc0929a5224d10e5982c5fd33f09e0e6.zip |
ipc: add LIBINPUT_CONFIG_ACCEL_PROFILE_CUSTOM entryv1.8
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/ipc-json.c')
-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 cd79e1c8..61f80cfa 100644 --- a/sway/ipc-json.c +++ b/sway/ipc-json.c | |||
@@ -905,6 +905,11 @@ static json_object *describe_libinput_device(struct libinput_device *device) { | |||
905 | case LIBINPUT_CONFIG_ACCEL_PROFILE_ADAPTIVE: | 905 | case LIBINPUT_CONFIG_ACCEL_PROFILE_ADAPTIVE: |
906 | accel_profile = "adaptive"; | 906 | accel_profile = "adaptive"; |
907 | break; | 907 | break; |
908 | #if HAVE_LIBINPUT_CONFIG_ACCEL_PROFILE_CUSTOM | ||
909 | case LIBINPUT_CONFIG_ACCEL_PROFILE_CUSTOM: | ||
910 | accel_profile = "custom"; | ||
911 | break; | ||
912 | #endif | ||
908 | } | 913 | } |
909 | json_object_object_add(object, "accel_profile", | 914 | json_object_object_add(object, "accel_profile", |
910 | json_object_new_string(accel_profile)); | 915 | json_object_new_string(accel_profile)); |