From d6de329d981f232ad47657d389a76b0da3cd217f Mon Sep 17 00:00:00 2001 From: emersion Date: Wed, 30 Jan 2019 10:54:57 +0100 Subject: seat: don't send motion if pointer hasn't moved --- rootston/input.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'rootston/input.c') 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)); } } -- cgit v1.2.3