aboutsummaryrefslogtreecommitdiff
path: root/rootston/config.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-12-08 17:03:05 +0100
committeremersion <contact@emersion.fr>2017-12-08 17:03:05 +0100
commita3c0f9781073a29c020d8f5c992b8019264dc219 (patch)
treee840e9682ba190759368ecd7e2312ed53c0da8b7 /rootston/config.c
parent703df2a6711322fac90581f2005750b5a72dd148 (diff)
Make keyboard repeat info configurable
Diffstat (limited to 'rootston/config.c')
-rw-r--r--rootston/config.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/rootston/config.c b/rootston/config.c
index 59adf13c..6e596852 100644
--- a/rootston/config.c
+++ b/rootston/config.c
@@ -213,6 +213,10 @@ static void config_handle_keyboard(struct roots_config *config,
kc->variant = strdup(value);
} else if (strcmp(name, "options") == 0) {
kc->options = strdup(value);
+ } else if (strcmp(name, "repeat-rate") == 0) {
+ kc->repeat_rate = strtol(value, NULL, 10);
+ } else if (strcmp(name, "repeat-delay") == 0) {
+ kc->repeat_delay = strtol(value, NULL, 10);
} else {
wlr_log(L_ERROR, "got unknown keyboard config: %s", name);
}