diff options
Diffstat (limited to 'rootston/input.c')
-rw-r--r-- | rootston/input.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rootston/input.c b/rootston/input.c index a863b919..757f1b35 100644 --- a/rootston/input.c +++ b/rootston/input.c @@ -136,10 +136,11 @@ static inline int64_t timespec_to_msec(const struct timespec *a) { } void input_update_cursor_focus(struct roots_input *input) { - struct roots_seat *seat; struct timespec now; + clock_gettime(CLOCK_MONOTONIC, &now); + + struct roots_seat *seat; wl_list_for_each(seat, &input->seats, link) { - clock_gettime(CLOCK_MONOTONIC, &now); roots_cursor_update_position(seat->cursor, timespec_to_msec(&now)); } } |