aboutsummaryrefslogtreecommitdiff
path: root/rootston/desktop.c
diff options
context:
space:
mode:
authorVersus Void <versusvoid@gmail.com>2017-10-06 21:50:25 +0000
committerVersus Void <versusvoid@gmail.com>2017-10-06 21:50:25 +0000
commit9cab66f0f914a0194cdfa178377f6413c33ac515 (patch)
tree8d179324b682a64ac4613c4979e7e628d2a14494 /rootston/desktop.c
parentdecd87043fbe2dfef3b664455298b68604ee0485 (diff)
Make xwayland compile-time optional
Diffstat (limited to 'rootston/desktop.c')
-rw-r--r--rootston/desktop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rootston/desktop.c b/rootston/desktop.c
index 5e85fb32..f0f8320d 100644
--- a/rootston/desktop.c
+++ b/rootston/desktop.c
@@ -159,6 +159,7 @@ struct roots_desktop *desktop_create(struct roots_server *server,
&desktop->wl_shell_surface);
desktop->wl_shell_surface.notify = handle_wl_shell_surface;
+#ifdef HAS_XWAYLAND
if (config->xwayland) {
desktop->xwayland = wlr_xwayland_create(server->wl_display,
desktop->compositor);
@@ -166,6 +167,7 @@ struct roots_desktop *desktop_create(struct roots_server *server,
&desktop->xwayland_surface);
desktop->xwayland_surface.notify = handle_xwayland_surface;
}
+#endif
desktop->gamma_control_manager = wlr_gamma_control_manager_create(
server->wl_display);