aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-02-01 20:13:53 +0100
committerSimon Ser <contact@emersion.fr>2023-02-01 20:13:53 +0100
commitf9bd416d4156942ce3951a6c5cf9f81a3cf4a3dd (patch)
tree76bce85fee176f7498451d82d083bfa12b6f675c /include/wlr
parent49cb85ad72aed7a94028e1a033b57b7576e8bec6 (diff)
layer-shell-v1: 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_layer_shell_v1.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/include/wlr/types/wlr_layer_shell_v1.h b/include/wlr/types/wlr_layer_shell_v1.h
index 4b231b7d..d94b5923 100644
--- a/include/wlr/types/wlr_layer_shell_v1.h
+++ b/include/wlr/types/wlr_layer_shell_v1.h
@@ -140,17 +140,12 @@ uint32_t wlr_layer_surface_v1_configure(struct wlr_layer_surface_v1 *surface,
void wlr_layer_surface_v1_destroy(struct wlr_layer_surface_v1 *surface);
/**
- * Returns true if the surface has the layer surface role.
- */
-bool wlr_surface_is_layer_surface(struct wlr_surface *surface);
-
-/**
* Get a struct wlr_layer_surface from a struct wlr_surface.
- * Asserts that the surface has the layer surface role.
- * May return NULL even if the surface has the layer surface role if the
- * corresponding layer surface has been destroyed.
+ *
+ * Returns NULL if the surface doesn't have the layer surface role or if
+ * the layer surface has been destroyed.
*/
-struct wlr_layer_surface_v1 *wlr_layer_surface_v1_from_wlr_surface(
+struct wlr_layer_surface_v1 *wlr_layer_surface_v1_try_from_wlr_surface(
struct wlr_surface *surface);
/**