mirror of
https://github.com/swaywm/sway.git
synced 2025-11-01 22:58:41 -04:00
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:
parent
e33dfbfa75
commit
8dbbfa5965
2 changed files with 10 additions and 10 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue