From 9cab66f0f914a0194cdfa178377f6413c33ac515 Mon Sep 17 00:00:00 2001 From: Versus Void Date: Fri, 6 Oct 2017 21:50:25 +0000 Subject: Make xwayland compile-time optional --- include/rootston/desktop.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include/rootston/desktop.h') diff --git a/include/rootston/desktop.h b/include/rootston/desktop.h index 0d641848..aa74ad3e 100644 --- a/include/rootston/desktop.h +++ b/include/rootston/desktop.h @@ -34,14 +34,17 @@ struct roots_desktop { struct wlr_compositor *compositor; struct wlr_wl_shell *wl_shell; struct wlr_xdg_shell_v6 *xdg_shell_v6; - struct wlr_xwayland *xwayland; struct wlr_gamma_control_manager *gamma_control_manager; struct wl_listener output_add; struct wl_listener output_remove; struct wl_listener xdg_shell_v6_surface; - struct wl_listener xwayland_surface; struct wl_listener wl_shell_surface; + +#ifdef HAS_XWAYLAND + struct wlr_xwayland *xwayland; + struct wl_listener xwayland_surface; +#endif }; struct roots_server; -- cgit v1.2.3