summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw@src.gnome.org>2018-02-16 04:42:48 +0800
committerTing-Wei Lan <lantw@src.gnome.org>2018-03-20 23:38:08 +0800
commit02c9b5c3e5cca9ff83c4221726c47f33c94bb592 (patch)
tree8ba44f2ff465a969db7ee9d473b8774567dc59f7
parentae201e3d66ee485304b7ce423cc71094347e04a7 (diff)
downloadmutter-wip/lantw/wayland-on-freebsd.tar.gz
main: Fix build when native backend is disabledwip/lantw/wayland-on-freebsd
-rw-r--r--src/core/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 079f6a9ef..be7a90feb 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -432,7 +432,11 @@ calculate_compositor_configuration (MetaCompositorType *compositor_type,
#ifdef HAVE_WAYLAND
gboolean run_as_wayland_compositor = opt_wayland && !opt_x11;
+#ifdef HAVE_NATIVE_BACKEND
if ((opt_wayland || opt_nested || opt_display_server) && opt_x11)
+#else
+ if ((opt_wayland || opt_nested) && opt_x11)
+#endif
{
meta_warning ("Can't run both as Wayland compositor and X11 compositing manager\n");
meta_exit (META_EXIT_ERROR);