mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-26 03:06:30 +00:00
Add repeat delay and repeat rate to config.h (#13)
This commit is contained in:
parent
e629feabaf
commit
91b18d4d4d
2 changed files with 3 additions and 1 deletions
|
@ -37,6 +37,8 @@ static const struct xkb_rule_names xkb_rules = {
|
|||
.options = "ctrl:nocaps",
|
||||
*/
|
||||
};
|
||||
static const int repeat_rate = 25;
|
||||
static const int repeat_delay = 600;
|
||||
|
||||
#define MODKEY WLR_MODIFIER_ALT
|
||||
#define TAGKEYS(KEY,SKEY,TAG) \
|
||||
|
|
2
dwl.c
2
dwl.c
|
@ -391,7 +391,7 @@ createkeyboard(struct wlr_input_device *device)
|
|||
wlr_keyboard_set_keymap(device->keyboard, keymap);
|
||||
xkb_keymap_unref(keymap);
|
||||
xkb_context_unref(context);
|
||||
wlr_keyboard_set_repeat_info(device->keyboard, 25, 600);
|
||||
wlr_keyboard_set_repeat_info(device->keyboard, repeat_rate, repeat_delay);
|
||||
|
||||
/* Here we set up listeners for keyboard events. */
|
||||
kb->modifiers.notify = keypressmod;
|
||||
|
|
Loading…
Reference in a new issue