xwayland: add option to disable WM

This commit is contained in:
Simon Ser 2020-05-19 17:28:23 +02:00 committed by Drew DeVault
parent 27609ba0d9
commit 2176c63856
3 changed files with 48 additions and 13 deletions

View file

@ -34,6 +34,7 @@ struct wlr_xwayland_server {
int x_fd[2];
struct wl_event_source *x_fd_read_event[2];
bool lazy;
bool enable_wm;
struct wl_display *wl_display;
@ -48,6 +49,11 @@ struct wlr_xwayland_server {
void *data;
};
struct wlr_xwayland_server_options {
bool lazy;
bool enable_wm;
};
struct wlr_xwayland_server_ready_event {
struct wlr_xwayland_server *server;
int wm_fd;
@ -216,7 +222,7 @@ struct wlr_xwayland_resize_event {
};
struct wlr_xwayland_server *wlr_xwayland_server_create(
struct wl_display *display, bool lazy);
struct wl_display *display, struct wlr_xwayland_server_options *options);
void wlr_xwayland_server_destroy(struct wlr_xwayland_server *server);
/** Create an Xwayland server and XWM.