From 86f057a7122fb261f6767185b7326b2c563b35ac Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Mon, 17 Feb 2014 21:49:46 -0500 Subject: [PATCH] monitor: Add a Wayland backend We shouldn't crash when trying to run nested under Wayland. Just use the dummy backend for now until we are able to run with a system compositor. --- src/core/monitor.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/core/monitor.c b/src/core/monitor.c index 110bb406f..9c22992ac 100644 --- a/src/core/monitor.c +++ b/src/core/monitor.c @@ -374,6 +374,16 @@ get_default_backend (void) } #endif +#if defined(CLUTTER_WINDOWING_WAYLAND) + if (clutter_check_windowing_backend (CLUTTER_WINDOWING_WAYLAND)) + { + /* Use the dummy implementation on Wayland for now. + * In the future, we should support wl_fullscreen_output + * which will have CRTC management in the protocol. */ + return META_TYPE_MONITOR_MANAGER; + } +#endif + g_assert_not_reached (); }