[gdm/wip/wayland-take-2: 7/8] session: Wayland sessions are allocated on a new VT



commit ccc45bb58b64a3dbb3d0e757bca1b2849644e5ad
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Mar 6 13:55:09 2014 -0500

    session: Wayland sessions are allocated on a new VT
    
    ... at least for now, until we land logind integration in mutter
    and turn on the Xorg logind-aware codepath in gdm.

 daemon/gdm-session.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gdm-session.c b/daemon/gdm-session.c
index adb3535..a9f3f95 100644
--- a/daemon/gdm-session.c
+++ b/daemon/gdm-session.c
@@ -2727,6 +2727,13 @@ out:
 GdmSessionDisplayMode
 gdm_session_get_display_mode (GdmSession *self)
 {
+        /* Wayland sessions are for now assumed to run in a
+         * mutter-launch-like environment, so we allocate
+         * a new VT for them. */
+        if (gdm_session_is_wayland_session (self)) {
+                return GDM_SESSION_DISPLAY_MODE_NEW_VT;
+        }
+
         /* X sessions are for now ran in classic mode where
          * we reuse the existing greeter. */
         return GDM_SESSION_DISPLAY_MODE_REUSE_VT;


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