mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-03-27 07:58:59 -04:00
compositor: introduce wlr_surface_set_role_object()
This commit is contained in:
parent
0040c78c0b
commit
0f67580aab
12 changed files with 58 additions and 33 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue