mirror of
https://github.com/swaywm/sway.git
synced 2024-11-23 00:11:28 +00:00
[IPC] Add repeat delay/rate info to keyboard
Closes #6735 wlroots already has the info in the struct so let's access it and print it out.
This commit is contained in:
parent
eaeb173a4b
commit
b8995ced8f
|
@ -981,6 +981,11 @@ json_object *ipc_json_describe_input(struct sway_input_device *device) {
|
||||||
struct xkb_keymap *keymap = keyboard->keymap;
|
struct xkb_keymap *keymap = keyboard->keymap;
|
||||||
struct xkb_state *state = keyboard->xkb_state;
|
struct xkb_state *state = keyboard->xkb_state;
|
||||||
|
|
||||||
|
json_object_object_add(object, "repeat_delay",
|
||||||
|
json_object_new_int(keyboard->repeat_info.delay));
|
||||||
|
json_object_object_add(object, "repeat_rate",
|
||||||
|
json_object_new_int(keyboard->repeat_info.rate));
|
||||||
|
|
||||||
json_object *layouts_arr = json_object_new_array();
|
json_object *layouts_arr = json_object_new_array();
|
||||||
json_object_object_add(object, "xkb_layout_names", layouts_arr);
|
json_object_object_add(object, "xkb_layout_names", layouts_arr);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue