[gdm/wip/wayland-take-2: 8/9] session: Wayland sessions are vt-unaware



commit ee09212008e6cebad9310a9ffd6a7ba39ba872a6
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Mar 17 22:19:29 2014 -0400

    session: Wayland sessions are vt-unaware
    
    ... 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 1c90d40..37db7b0 100644
--- a/daemon/gdm-session.c
+++ b/daemon/gdm-session.c
@@ -2727,6 +2727,13 @@ out:
 GdmDisplayServerMode
 gdm_session_get_display_server_mode (GdmSession *self)
 {
+        /* Wayland sessions are for now assumed to run in a
+         * mutter-launch-like environment, so they're
+         * considered "vt-unaware". */
+        if (gdm_session_is_wayland_session (self)) {
+                return GDM_DISPLAY_SERVER_MODE_VT_UNAWARE;
+        }
+
         /* X sessions are for now ran in classic mode. */
         return GDM_DISPLAY_SERVER_MODE_REUSE_EXISTING_SERVER;
 }


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