aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-10-18 14:32:30 +0200
committerSimon Zeni <simon@bl4ckb0ne.ca>2022-11-18 15:35:20 +0000
commit85b37127a6e33a3d73a3dd6c5c0d02c3755c91f6 (patch)
tree116481442b0882abeb340a0b311ab11646af332c /include
parentd19191ff6bbcb9c91b1d0f2d7233c46c37d153e7 (diff)
xwayland/shell: add wlr_xwayland_shell_v1_surface_from_serial()
Diffstat (limited to 'include')
-rw-r--r--include/wlr/xwayland/shell.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/wlr/xwayland/shell.h b/include/wlr/xwayland/shell.h
index 91b7c716..75a410e2 100644
--- a/include/wlr/xwayland/shell.h
+++ b/include/wlr/xwayland/shell.h
@@ -70,4 +70,12 @@ void wlr_xwayland_shell_v1_destroy(struct wlr_xwayland_shell_v1 *shell);
void wlr_xwayland_shell_v1_set_client(struct wlr_xwayland_shell_v1 *shell,
struct wl_client *client);
+/**
+ * Get a Wayland surface from an xwayland_shell_v1 serial.
+ *
+ * Returns NULL if the serial hasn't been associated with any surface.
+ */
+struct wlr_surface *wlr_xwayland_shell_v1_surface_from_serial(
+ struct wlr_xwayland_shell_v1 *shell, uint64_t serial);
+
#endif