diff options
author | Ting-Wei Lan <lantw@src.gnome.org> | 2018-02-16 04:42:48 +0800 |
---|---|---|
committer | Florian Müllner <florian.muellner@gmail.com> | 2018-03-21 13:14:51 +0000 |
commit | a5fd9a6e2f6e8a09bc7ed390ea828c4fc78a2806 (patch) | |
tree | e03e21549b6e870f50f54d8faf62883763adb83e | |
parent | 4e6114b14d2c850cf352691505b3802a556eb125 (diff) | |
download | mutter-a5fd9a6e2f6e8a09bc7ed390ea828c4fc78a2806.tar.gz |
main: Fix build when native backend is disabled
-rw-r--r-- | src/core/main.c | 4 |
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); |