aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-02-01 20:13:30 +0100
committerSimon Ser <contact@emersion.fr>2023-02-01 20:13:30 +0100
commit49cb85ad72aed7a94028e1a033b57b7576e8bec6 (patch)
treeb47b52938a371a1beac59574dcfde362d2512704 /include/wlr
parent711a1a3ed42150fdbc716e80719d482006075f69 (diff)
input-method-v2: 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_input_method_v2.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/include/wlr/types/wlr_input_method_v2.h b/include/wlr/types/wlr_input_method_v2.h
index e3f326ac..11e43590 100644
--- a/include/wlr/types/wlr_input_method_v2.h
+++ b/include/wlr/types/wlr_input_method_v2.h
@@ -121,17 +121,12 @@ void wlr_input_method_v2_send_unavailable(
struct wlr_input_method_v2 *input_method);
/**
- * Returns true if the surface has the input popup surface role.
- */
-bool wlr_surface_is_input_popup_surface_v2(struct wlr_surface *surface);
-
-/**
* Get a struct wlr_input_popup_surface_v2 from a struct wlr_surface.
- * Asserts that the surface has the input popup surface role.
- * May return NULL even if the surface has the input popup surface role if the
- * corresponding input popup surface has been destroyed.
+ *
+ * Returns NULL if the surface has a different role or if the input popup
+ * surface has been destroyed.
*/
-struct wlr_input_popup_surface_v2 *wlr_input_popup_surface_v2_from_wlr_surface(
+struct wlr_input_popup_surface_v2 *wlr_input_popup_surface_v2_try_from_wlr_surface(
struct wlr_surface *surface);
void wlr_input_popup_surface_v2_send_text_input_rectangle(