diff options
author | David Herrmann <dh.herrmann@googlemail.com> | 2012-10-07 15:31:53 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@googlemail.com> | 2012-10-07 15:31:53 +0200 |
commit | 7e4e25fcd257d77b8356c67f3756fb78516067ba (patch) | |
tree | 4607fe3d085bba38a8a3f87428b1e5fb729110eb /src/wlt_toolkit.c | |
parent | 7f1bff5cc6ef38a93e8db6f0349033ab6ee9a969 (diff) |
wlt: add command-line options for xkb-repeat settings
You can now use --xkb-repeat-rate/delay to configure the Xkb key-repeat
settings instead of using the default 25/250.
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Diffstat (limited to 'src/wlt_toolkit.c')
-rw-r--r-- | src/wlt_toolkit.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wlt_toolkit.c b/src/wlt_toolkit.c index e23fc33..8531244 100644 --- a/src/wlt_toolkit.c +++ b/src/wlt_toolkit.c @@ -43,6 +43,7 @@ #include "shl_hook.h" #include "shl_misc.h" #include "tsm_vte.h" +#include "wlt_main.h" #include "wlt_toolkit.h" #define LOG_SUBSYSTEM "wlt_toolkit" @@ -678,9 +679,9 @@ static void keyboard_key(void *data, struct wl_keyboard *keyboard, } else if (state == WL_KEYBOARD_KEY_STATE_PRESSED) { disp->repeat_sym = sym; spec.it_interval.tv_sec = 0; - spec.it_interval.tv_nsec = 25 * 1000000; + spec.it_interval.tv_nsec = wlt_conf.xkb_repeat_rate * 1000000; spec.it_value.tv_sec = 0; - spec.it_value.tv_nsec = 250 * 1000000; + spec.it_value.tv_nsec = wlt_conf.xkb_repeat_delay * 1000000; ev_timer_update(disp->repeat_timer, &spec); } } |