diff options
author | Simon Ser <contact@emersion.fr> | 2023-02-01 20:14:39 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-02-01 20:14:39 +0100 |
commit | eb3e8f08a8bb17f9b6260015b901cacbb9b0ce94 (patch) | |
tree | b0b19e0b0a12b2b0be9e08abd42c0b1fb9d31cf6 /include/wlr | |
parent | c5f7f8ab983496f7bdced3c0944c739ba7dab338 (diff) |
subcompositor: convert to try_from
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/884
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_subcompositor.h | 13 |
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); |