mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -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
|
|
@ -111,7 +111,7 @@ static void shell_handle_get_xwayland_surface(struct wl_client *client,
|
|||
return;
|
||||
}
|
||||
|
||||
if (!wlr_surface_set_role(surface, &xwl_surface_role, xwl_surface,
|
||||
if (!wlr_surface_set_role(surface, &xwl_surface_role,
|
||||
shell_resource, XWAYLAND_SHELL_V1_ERROR_ROLE)) {
|
||||
free(xwl_surface);
|
||||
return;
|
||||
|
|
@ -131,6 +131,8 @@ static void shell_handle_get_xwayland_surface(struct wl_client *client,
|
|||
wl_resource_set_implementation(xwl_surface->resource, &xwl_surface_impl,
|
||||
xwl_surface, xwl_surface_handle_resource_destroy);
|
||||
|
||||
wlr_surface_set_role_object(surface, xwl_surface);
|
||||
|
||||
wl_list_insert(&shell->surfaces, &xwl_surface->link);
|
||||
|
||||
xwl_surface->surface_destroy.notify = xwl_surface_handle_surface_destroy;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue