From 52acbebebc0929a5224d10e5982c5fd33f09e0e6 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sun, 26 Mar 2023 23:27:40 +0200 Subject: 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)) { | ^~~~~~ --- sway/ipc-json.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sway/ipc-json.c') 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) { 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)); -- cgit v1.2.3-54-g00ecf