diff options
-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 1b64f86e..8357ae04 100644 --- a/sway/ipc-json.c +++ b/sway/ipc-json.c | |||
@@ -980,6 +980,11 @@ json_object *ipc_json_describe_input(struct sway_input_device *device) { | |||
980 | struct wlr_keyboard *keyboard = device->wlr_device->keyboard; | 980 | struct wlr_keyboard *keyboard = device->wlr_device->keyboard; |
981 | struct xkb_keymap *keymap = keyboard->keymap; | 981 | struct xkb_keymap *keymap = keyboard->keymap; |
982 | struct xkb_state *state = keyboard->xkb_state; | 982 | struct xkb_state *state = keyboard->xkb_state; |
983 | |||
984 | json_object_object_add(object, "repeat_delay", | ||
985 | json_object_new_int(keyboard->repeat_info.delay)); | ||
986 | json_object_object_add(object, "repeat_rate", | ||
987 | json_object_new_int(keyboard->repeat_info.rate)); | ||
983 | 988 | ||
984 | json_object *layouts_arr = json_object_new_array(); | 989 | json_object *layouts_arr = json_object_new_array(); |
985 | json_object_object_add(object, "xkb_layout_names", layouts_arr); | 990 | json_object_object_add(object, "xkb_layout_names", layouts_arr); |