[gdm/wip/xserver-in-session: 12/12] session: start user X sessions on a new VT
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm/wip/xserver-in-session: 12/12] session: start user X sessions on a new VT
- Date: Thu, 22 Jan 2015 14:39:24 +0000 (UTC)
commit 8ef1bcf21fd2e97ad59860a3423c4e52f3f59b32
Author: Ray Strode <rstrode redhat com>
Date: Tue Jan 20 09:32:43 2015 -0500
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.
daemon/gdm-session.c | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/daemon/gdm-session.c b/daemon/gdm-session.c
index 5456ce8..42fe248 100644
--- a/daemon/gdm-session.c
+++ b/daemon/gdm-session.c
@@ -2947,9 +2947,17 @@ 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;
+ /* 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;
+ }
+
+ /* user based X sessions start on a new VT now just like
+ * wayland sessions.
+ */
+ return GDM_SESSION_DISPLAY_MODE_NEW_VT;
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]