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.
This commit is contained in:
Jasper St. Pierre 2014-02-17 21:49:46 -05:00
parent dcd628d289
commit 86f057a712

View File

@ -374,6 +374,16 @@ get_default_backend (void)
} }
#endif #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 (); g_assert_not_reached ();
} }