diff options
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)); |