Bindings use advised keyboard repeat parameters

Now 'repeat_delay' and 'repeat_rate' control the initial delay
and rate (per second) of repeated binding invocations.

If the repeat delay is zero, binding repetition is disabled.
When the repeat rate is zero, the binding is repeated exactly
once, assuming no other key events intervene.
This commit is contained in:
frsfnrrg 2018-07-29 18:50:20 -04:00
parent e33dfbfa75
commit 8dbbfa5965
2 changed files with 10 additions and 10 deletions

View file

@ -41,8 +41,6 @@ struct sway_keyboard {
struct wl_event_source *key_repeat_source;
struct sway_binding *repeat_binding;
int key_repeat_initial_delay; // first key repeat event delay, in ms
int key_repeat_step_delay; // subsequent repeat delay, in ms
};
struct sway_keyboard *sway_keyboard_create(struct sway_seat *seat,