diff options
author | Simon Ser <contact@emersion.fr> | 2023-08-21 18:39:25 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-08-21 18:56:09 +0200 |
commit | 72787db98a92f59b279aade46bed297e522dadd2 (patch) | |
tree | 1ccbb5f82b5836cd16bb28c7c21b30c69eade8c3 /include/wlr | |
parent | bd5c4f4a4a79743df77db40d18eb32686312f320 (diff) |
compositor: drop wlr_surface_destroy_role_object()
This function is now unnecessary.
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_compositor.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/include/wlr/types/wlr_compositor.h b/include/wlr/types/wlr_compositor.h index 0d3b6e71..4c98c474 100644 --- a/include/wlr/types/wlr_compositor.h +++ b/include/wlr/types/wlr_compositor.h @@ -251,19 +251,12 @@ 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. + * When the resource is destroyed, the surface is unmapped, + * wlr_surface_role.destroy is called and the role object is unset. */ void wlr_surface_set_role_object(struct wlr_surface *surface, struct wl_resource *role_resource); /** - * Destroy the object representing the surface's role. If it doesn't exist, - * this function is no-op. - * - * This doesn't reset the surface role itself. - */ -void wlr_surface_destroy_role_object(struct wlr_surface *surface); - -/** * Map the surface. If the surface is already mapped, this is no-op. * * This function must only be used by surface role implementations. |