mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
xwayland: add wlr_xwayland_create_with_server()
Allows compositors to set up the server (and shell) on their own.
This commit is contained in:
parent
bdcf997a89
commit
e519635cc2
2 changed files with 68 additions and 30 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue