Remove pointer resource from relative pointer

This commit is contained in:
Alex Maese 2018-12-14 09:42:24 -06:00
parent d0c940d796
commit f5ea393bca
3 changed files with 7 additions and 3 deletions

View File

@ -54,7 +54,6 @@ struct wlr_relative_pointer_manager_v1 {
struct wlr_relative_pointer_v1 {
struct wl_resource *resource;
struct wlr_seat *seat;
struct wl_resource *pointer;
struct wl_list link; // wlr_relative_pointer_manager_v1::relative_pointers
struct {

View File

@ -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);
}
}

View File

@ -99,7 +99,6 @@ static void relative_pointer_manager_v1_handle_get_relative_pointer(struct wl_cl
relative_pointer->resource = relative_pointer_resource;
relative_pointer->seat = seat_client->seat;
relative_pointer->pointer = pointer;
wl_signal_init(&relative_pointer->events.destroy);