mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
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:
parent
dcd628d289
commit
86f057a712
@ -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 ();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user