aboutsummaryrefslogtreecommitdiff
path: root/rootston/cursor.c
diff options
context:
space:
mode:
authorAlex Maese <memaese@hotmail.com>2018-12-14 09:42:24 -0600
committerAlex Maese <memaese@hotmail.com>2018-12-21 12:20:48 -0600
commitf5ea393bca7a427c0d97217c67b0be563b28dc19 (patch)
treee4916da17451ef44563d7bcf64f9818b79c01f91 /rootston/cursor.c
parentd0c940d796418672a2421afe108e01b23b0452c4 (diff)
Remove pointer resource from relative pointer
Diffstat (limited to 'rootston/cursor.c')
-rw-r--r--rootston/cursor.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/rootston/cursor.c b/rootston/cursor.c
index e34fe4b2..ba8d0860 100644
--- a/rootston/cursor.c
+++ b/rootston/cursor.c
@@ -327,7 +327,13 @@ static void notify_relative_motion(struct roots_seat *seat, uint64_t time_msec,
wlr_relative_pointer_v1_send_relative_motion(pointer, time_msec,
dx, dy, dx_unaccel, dy_unaccel);
- wl_pointer_send_frame(pointer->pointer);
+ }
+
+ wl_resource_for_each(resource, &client->pointers) {
+ if (wlr_seat_client_from_pointer_resource(resource) == NULL) {
+ continue;
+ }
+ wl_pointer_send_frame(resource);
}
}