aboutsummaryrefslogtreecommitdiff
path: root/rootston/input.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-01-30 09:36:42 -0500
committerGitHub <noreply@github.com>2019-01-30 09:36:42 -0500
commit41af8d845933f2bc6b158d0cac5a0c5688cce7d0 (patch)
tree35cfc896a7dc98097333aebf40eedc2f288722a9 /rootston/input.c
parenta37dfb380b4d519f943e23ee69671aa64b098ecf (diff)
parent29952dee19c030d2ae1034e0304de72a645b4444 (diff)
Merge pull request #1513 from emersion/fix-dnd
data-device: fix drag-and-drop
Diffstat (limited to 'rootston/input.c')
-rw-r--r--rootston/input.c5
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));
}
}