diff options
author | Simon Ser <contact@emersion.fr> | 2023-02-01 20:14:12 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-02-01 20:14:12 +0100 |
commit | c5f7f8ab983496f7bdced3c0944c739ba7dab338 (patch) | |
tree | a8e79aab9aa15ef8039092b8cfca8422f0c6066c /include/wlr | |
parent | f9bd416d4156942ce3951a6c5cf9f81a3cf4a3dd (diff) |
ext-session-lock-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_session_lock_v1.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/include/wlr/types/wlr_session_lock_v1.h b/include/wlr/types/wlr_session_lock_v1.h index b6eee1a3..aff37871 100644 --- a/include/wlr/types/wlr_session_lock_v1.h +++ b/include/wlr/types/wlr_session_lock_v1.h @@ -95,17 +95,12 @@ uint32_t wlr_session_lock_surface_v1_configure( uint32_t width, uint32_t height); /** - * Returns true if the surface has the session lock surface role. - */ -bool wlr_surface_is_session_lock_surface_v1(struct wlr_surface *surface); - -/** * Get a struct wlr_session_lock_surface_v1 from a struct wlr_surface. - * Asserts that the surface has the session lock surface role. - * May return NULL even if the surface has the session lock surface role if the - * corresponding session lock surface has been destroyed. + * + * Returns NULL if the surface has a different role or if the lock surface + * has been destroyed. */ -struct wlr_session_lock_surface_v1 *wlr_session_lock_surface_v1_from_wlr_surface( +struct wlr_session_lock_surface_v1 *wlr_session_lock_surface_v1_try_from_wlr_surface( struct wlr_surface *surface); #endif |