ipc-json: handle LIBINPUT_CONFIG_DRAG_LOCK_ENABLED_STICKY

New entry introduced in libinput 1.27.0.
This commit is contained in:
Simon Ser 2024-11-20 20:41:16 +01:00 committed by Kirill Primak
parent 5312376077
commit e2409aa496
2 changed files with 8 additions and 5 deletions

View file

@ -931,6 +931,11 @@ static json_object *describe_libinput_device(struct libinput_device *device) {
case LIBINPUT_CONFIG_DRAG_LOCK_DISABLED:
drag_lock = "disabled";
break;
#if HAVE_LIBINPUT_CONFIG_DRAG_LOCK_ENABLED_STICKY
case LIBINPUT_CONFIG_DRAG_LOCK_ENABLED_STICKY:
drag_lock = "enabled_sticky";
break;
#endif
}
json_object_object_add(object, "tap_drag_lock",
json_object_new_string(drag_lock));