aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'input.c')
-rw-r--r--input.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/input.c b/input.c
index ffbd7b34..c0fc3522 100644
--- a/input.c
+++ b/input.c
@@ -580,6 +580,9 @@ start_repeater(struct seat *seat, uint32_t key)
if (seat->kbd.repeat.dont_re_repeat)
return true;
+ if (seat->kbd.repeat.rate == 0)
+ return true;
+
struct itimerspec t = {
.it_value = {.tv_sec = 0, .tv_nsec = seat->kbd.repeat.delay * 1000000},
.it_interval = {.tv_sec = 0, .tv_nsec = 1000000000 / seat->kbd.repeat.rate},