summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2014-03-06 13:55:09 -0500
committerRay Strode <rstrode@redhat.com>2014-03-18 16:27:44 -0400
commit9808164db03447a519cc6b125b6b766c86db0ed6 (patch)
treec16d19d9fd8a4807e4f26caec0158900c6276933
parentc1cc21aa92b799f876c9633dbb8cb9f7305a79d5 (diff)
downloadgdm-9808164db03447a519cc6b125b6b766c86db0ed6.tar.gz
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. https://bugzilla.gnome.org/show_bug.cgi?id=726380
-rw-r--r--daemon/gdm-session.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/daemon/gdm-session.c b/daemon/gdm-session.c
index 85ae9888..d519b357 100644
--- a/daemon/gdm-session.c
+++ b/daemon/gdm-session.c
@@ -2734,6 +2734,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;