compositor: introduce wlr_surface_set_role_object()

This commit is contained in:
Kirill Primak 2023-06-22 15:05:34 +03:00 committed by Simon Ser
parent 0040c78c0b
commit 0f67580aab
12 changed files with 58 additions and 33 deletions

View file

@ -96,7 +96,7 @@ static void pointer_set_cursor(struct wl_client *client,
struct wlr_surface *surface = NULL;
if (surface_resource != NULL) {
surface = wlr_surface_from_resource(surface_resource);
if (!wlr_surface_set_role(surface, &pointer_cursor_surface_role, NULL,
if (!wlr_surface_set_role(surface, &pointer_cursor_surface_role,
surface_resource, WL_POINTER_ERROR_ROLE)) {
return;
}