Make keyboard repeat info configurable

This commit is contained in:
emersion 2017-12-08 17:03:05 +01:00
parent 703df2a671
commit a3c0f97810
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
7 changed files with 69 additions and 6 deletions

View file

@ -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);
}