[mutter/wayland] monitor: Add a Wayland backend



commit 86f057a7122fb261f6767185b7326b2c563b35ac
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Feb 17 21:49:46 2014 -0500

    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 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/core/monitor.c b/src/core/monitor.c
index 110bb40..9c22992 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 ();
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]