diff options
author | Simon Ser <contact@emersion.fr> | 2023-06-23 14:33:26 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-06-23 14:33:26 +0200 |
commit | 8a5b5e6f28dae650df36a271213655b8bdf52dbf (patch) | |
tree | 61a34b26000b56501b9f9114fa66bec507705a58 /include | |
parent | 89cb4842208a2997cfa3a9bef7ac66e01a414ebb (diff) |
compositor: listen to role_resource destroy signal
Call wlr_surface_destroy_role_object() when the role_resource is
destroyed.
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/types/wlr_compositor.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_compositor.h b/include/wlr/types/wlr_compositor.h index 40ea7e9f..ffb56896 100644 --- a/include/wlr/types/wlr_compositor.h +++ b/include/wlr/types/wlr_compositor.h @@ -199,6 +199,7 @@ struct wlr_surface { // private state struct wl_listener renderer_destroy; + struct wl_listener role_resource_destroy; struct { int32_t scale; @@ -246,6 +247,8 @@ bool wlr_surface_set_role(struct wlr_surface *surface, const struct wlr_surface_ /** * Set the role object for this surface. The surface must have a role and * no already set role object. + * + * wlr_surface_destroy_role_object() is called when the resource is destroyed. */ void wlr_surface_set_role_object(struct wlr_surface *surface, struct wl_resource *role_resource); |