aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'input.c')
-rw-r--r--input.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/input.c b/input.c
index 248ee570..2a4322c9 100644
--- a/input.c
+++ b/input.c
@@ -528,12 +528,13 @@ keyboard_key(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial,
term_to_slave(term, buf, count);
}
- clock_gettime(
- term->wl->presentation_clock_id, &term->render.input_time);
term_reset_view(term);
selection_cancel(term);
maybe_repeat:
+ clock_gettime(
+ term->wl->presentation_clock_id, &term->render.input_time);
+
if (should_repeat)
start_repeater(wayl, key - 8);