mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
seat: don't send motion if pointer hasn't moved
This commit is contained in:
parent
c505ce3019
commit
d6de329d98
4 changed files with 28 additions and 9 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue