diff options
| author | Simon Ser <contact@emersion.fr> | 2023-10-09 10:58:00 +0200 | 
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2023-10-10 17:05:04 +0200 | 
| commit | e519635cc265abd9e1240c101dc293a06a78e359 (patch) | |
| tree | fb028269376bab28c43fa92e3d3437016bdc5f60 /include | |
| parent | bdcf997a8985831fcd88c018e92acab6a9a5ed5c (diff) | |
| download | wlroots-e519635cc265abd9e1240c101dc293a06a78e359.tar.xz | |
xwayland: add wlr_xwayland_create_with_server()
Allows compositors to set up the server (and shell) on their own.
Diffstat (limited to 'include')
| -rw-r--r-- | include/wlr/xwayland/xwayland.h | 7 | 
1 files changed, 7 insertions, 0 deletions
| 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, | 
