aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/input/keyboard.h
diff options
context:
space:
mode:
authorLibravatar frsfnrrg <frsfnrrg@users.noreply.github.com>2018-07-29 18:50:20 -0400
committerLibravatar frsfnrrg <frsfnrrg@users.noreply.github.com>2018-07-29 19:15:10 -0400
commit8dbbfa5965ca8bfe4bc023100387dd657bafe48e (patch)
tree53bf8301475a9250c2e5ebaa131086ede883ffc5 /include/sway/input/keyboard.h
parentImplement key repeat for pressed key bindings (diff)
downloadsway-8dbbfa5965ca8bfe4bc023100387dd657bafe48e.tar.gz
sway-8dbbfa5965ca8bfe4bc023100387dd657bafe48e.tar.zst
sway-8dbbfa5965ca8bfe4bc023100387dd657bafe48e.zip
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.
Diffstat (limited to 'include/sway/input/keyboard.h')
-rw-r--r--include/sway/input/keyboard.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/sway/input/keyboard.h b/include/sway/input/keyboard.h
index 660cdc9c..6d28454c 100644
--- a/include/sway/input/keyboard.h
+++ b/include/sway/input/keyboard.h
@@ -41,8 +41,6 @@ struct sway_keyboard {
41 41
42 struct wl_event_source *key_repeat_source; 42 struct wl_event_source *key_repeat_source;
43 struct sway_binding *repeat_binding; 43 struct sway_binding *repeat_binding;
44 int key_repeat_initial_delay; // first key repeat event delay, in ms
45 int key_repeat_step_delay; // subsequent repeat delay, in ms
46}; 44};
47 45
48struct sway_keyboard *sway_keyboard_create(struct sway_seat *seat, 46struct sway_keyboard *sway_keyboard_create(struct sway_seat *seat,