summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2015-01-20 09:32:43 -0500
committerRay Strode <rstrode@redhat.com>2015-02-17 23:48:07 -0500
commit26a71c852cb51e7adf5dedcf7810cde05248bfb5 (patch)
treee99c8b4e1a990bb03d619ad8d29a864e81edf523
parent20b935a9593629b21949d03b200da81c7c20fab2 (diff)
downloadgdm-26a71c852cb51e7adf5dedcf7810cde05248bfb5.tar.gz
session: start user X sessions on a new VT
We now have all the plumbing in place to start user X sessions on new VTs, so we should do it. This commit does that.
-rw-r--r--daemon/gdm-session.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/daemon/gdm-session.c b/daemon/gdm-session.c
index 17264903..0edfaa14 100644
--- a/daemon/gdm-session.c
+++ b/daemon/gdm-session.c
@@ -2895,6 +2895,13 @@ gdm_session_get_display_mode (GdmSession *self)
}
#endif
+ /* Non-seat0 sessions share their X server with their login screen
+ * for now.
+ */
+ if (g_strcmp0 (self->priv->display_seat_id, "seat0") != 0) {
+ return GDM_SESSION_DISPLAY_MODE_REUSE_VT;
+ }
+
/* The X session used for the login screen uses the
* X server started up by the slave, so it should be
* reuse VT
@@ -2903,9 +2910,10 @@ gdm_session_get_display_mode (GdmSession *self)
return GDM_SESSION_DISPLAY_MODE_REUSE_VT;
}
- /* X sessions are for now ran in classic mode where
- * we reuse the existing greeter. */
- return GDM_SESSION_DISPLAY_MODE_REUSE_VT;
+ /* user based X sessions start on a new VT now and are managed
+ * by logind
+ */
+ return GDM_SESSION_DISPLAY_MODE_LOGIND_MANAGED;
}
void