aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_subcompositor.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/include/wlr/types/wlr_subcompositor.h b/include/wlr/types/wlr_subcompositor.h
index afbff45b..c292ea0c 100644
--- a/include/wlr/types/wlr_subcompositor.h
+++ b/include/wlr/types/wlr_subcompositor.h
@@ -63,17 +63,12 @@ struct wlr_subcompositor {
};
/**
- * Returns true if the surface has the subsurface role.
- */
-bool wlr_surface_is_subsurface(struct wlr_surface *surface);
-
-/**
* Get a struct wlr_subsurface from a struct wlr_surface.
- * Asserts that the surface has the subsurface role.
- * May return NULL even if the surface has the subsurface role if the
- * corresponding subsurface has been destroyed.
+ *
+ * Returns NULL if the surface doesn't have the subsurface role or if
+ * the subsurface has been destroyed.
*/
-struct wlr_subsurface *wlr_subsurface_from_wlr_surface(
+struct wlr_subsurface *wlr_subsurface_try_from_wlr_surface(
struct wlr_surface *surface);
struct wlr_subcompositor *wlr_subcompositor_create(struct wl_display *display);