From e519635cc265abd9e1240c101dc293a06a78e359 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 9 Oct 2023 10:58:00 +0200 Subject: xwayland: add wlr_xwayland_create_with_server() Allows compositors to set up the server (and shell) on their own. --- include/wlr/xwayland/xwayland.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/wlr') diff --git a/include/wlr/xwayland/xwayland.h b/include/wlr/xwayland/xwayland.h index 68c8c0ac..240ee3a5 100644 --- a/include/wlr/xwayland/xwayland.h +++ b/include/wlr/xwayland/xwayland.h @@ -22,6 +22,7 @@ struct wlr_drag; struct wlr_xwayland { struct wlr_xwayland_server *server; + bool own_server; struct wlr_xwm *xwm; struct wlr_xwayland_shell_v1 *shell_v1; struct wlr_xwayland_cursor *cursor; @@ -200,6 +201,12 @@ struct wlr_xwayland_minimize_event { struct wlr_xwayland *wlr_xwayland_create(struct wl_display *wl_display, struct wlr_compositor *compositor, bool lazy); +/** + * Create an XWM from an existing Xwayland server. + */ +struct wlr_xwayland *wlr_xwayland_create_with_server(struct wl_display *display, + struct wlr_compositor *compositor, struct wlr_xwayland_server *server); + void wlr_xwayland_destroy(struct wlr_xwayland *wlr_xwayland); void wlr_xwayland_set_cursor(struct wlr_xwayland *wlr_xwayland, -- cgit v1.2.3