diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-01-21 17:51:04 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-01-21 17:51:04 +0000 |
| commit | d6ea676ef21165aa9f58a26489d49c998737f2a4 (patch) | |
| tree | 296d8f32469c94c4a1f2970cf84e3cff2d58bb4d /input.c | |
| parent | doc: foot.1: document alt/meta characters (diff) | |
presentation: store input timestamp in a per-commit context
This should reduce the risk of mixing up an input timestamp with the
corresponding rendered frame.
Diffstat (limited to 'input.c')
| -rw-r--r-- | input.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); |
