From 2176c63856df4e411df0ba3c5eee43f69e977b6e Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 19 May 2020 17:28:23 +0200 Subject: xwayland: add option to disable WM --- include/wlr/xwayland.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/wlr/xwayland.h b/include/wlr/xwayland.h index c4c5842c..03201718 100644 --- a/include/wlr/xwayland.h +++ b/include/wlr/xwayland.h @@ -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. -- cgit v1.2.3