aboutsummaryrefslogtreecommitdiff
path: root/xwayland
diff options
context:
space:
mode:
authorKirill Primak <vyivel@eclair.cafe>2023-06-22 15:05:34 +0300
committerSimon Ser <contact@emersion.fr>2023-06-23 11:54:05 +0000
commit0f67580aab115e9667650d52104e3ea3a5dfe20b (patch)
tree4c962155440d3ee0f6713a9d373012e4f367ab26 /xwayland
parent0040c78c0befb4fef1f092924b0e9d2e6a07d542 (diff)
compositor: introduce wlr_surface_set_role_object()
Diffstat (limited to 'xwayland')
-rw-r--r--xwayland/shell.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xwayland/shell.c b/xwayland/shell.c
index 8d34ea04..d362cb7d 100644
--- a/xwayland/shell.c
+++ b/xwayland/shell.c
@@ -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;