diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-12-08 15:47:11 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-08 15:47:11 -0500 |
commit | eb4e91f96d206ff05ac7f6bb1972bf48f45e5e5e (patch) | |
tree | eab75ecb0f188786cd78286d09ebffb525ae74e1 /rootston/config.c | |
parent | 381a646d2fbcb1b488e1551438444ac267f39138 (diff) | |
parent | 2c6e52c164cfd19bac642d3507fb8584a0201845 (diff) |
Merge pull request #474 from emersion/customize-repeat-info
Make keyboard repeat info configurable
Diffstat (limited to 'rootston/config.c')
-rw-r--r-- | rootston/config.c | 4 |
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); } |