mirror of
https://github.com/brl/mutter.git
synced 2025-02-23 00:14:09 +00:00
main: Fix build when native backend is disabled
This commit is contained in:
parent
4e6114b14d
commit
a5fd9a6e2f
@ -432,7 +432,11 @@ calculate_compositor_configuration (MetaCompositorType *compositor_type,
|
|||||||
#ifdef HAVE_WAYLAND
|
#ifdef HAVE_WAYLAND
|
||||||
gboolean run_as_wayland_compositor = opt_wayland && !opt_x11;
|
gboolean run_as_wayland_compositor = opt_wayland && !opt_x11;
|
||||||
|
|
||||||
|
#ifdef HAVE_NATIVE_BACKEND
|
||||||
if ((opt_wayland || opt_nested || opt_display_server) && opt_x11)
|
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_warning ("Can't run both as Wayland compositor and X11 compositing manager\n");
|
||||||
meta_exit (META_EXIT_ERROR);
|
meta_exit (META_EXIT_ERROR);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user