[gdm] Revert "manager: Don't reuse the same X server when we have a display server"
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] Revert "manager: Don't reuse the same X server when we have a display server"
- Date: Tue, 18 Mar 2014 04:27:51 +0000 (UTC)
commit cd28617d7582be7f2413a1ea47d03f88e3d768ec
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Mar 17 22:16:01 2014 -0400
Revert "manager: Don't reuse the same X server when we have a display server"
This reverts commit 72ccb27377886b9998ad8b5b7a3b3070474f90f3.
We're going to take a different approach for this.
daemon/gdm-manager.c | 20 +-------------------
daemon/gdm-session.c | 6 ------
daemon/gdm-session.h | 1 -
3 files changed, 1 insertions(+), 26 deletions(-)
---
diff --git a/daemon/gdm-manager.c b/daemon/gdm-manager.c
index 5c59dc9..f55d11e 100644
--- a/daemon/gdm-manager.c
+++ b/daemon/gdm-manager.c
@@ -870,25 +870,7 @@ on_start_user_session (StartUserSessionOperation *operation)
}
display = get_display_for_user_session (operation->session);
-
- if (gdm_session_has_own_display_server (operation->session)) {
- uid_t allowed_uid;
-
- g_debug ("GdmManager: session has its display server, reusing our server for another login
screen");
-
- /* The seed session is going to follow the session worker
- * into the new display. Untie it from this display and
- * create a new seed session for us. */
- allowed_uid = gdm_session_get_allowed_user (operation->session);
- g_object_set_data (G_OBJECT (display), "gdm-seed-session", NULL);
- g_object_set_data (G_OBJECT (operation->session), "gdm-display", NULL);
- create_seed_session_for_display (operation->manager, display, allowed_uid);
- } else {
- /* In this case, the greeter's display is morphing into
- * the user session display. Kill the greeter on this session
- * and let the seed session follow the same display. */
- gdm_display_stop_greeter_session (display);
- }
+ gdm_display_stop_greeter_session (display);
start_user_session (operation->manager, operation);
diff --git a/daemon/gdm-session.c b/daemon/gdm-session.c
index 45b8acc..7b6b5e2 100644
--- a/daemon/gdm-session.c
+++ b/daemon/gdm-session.c
@@ -2691,12 +2691,6 @@ out:
return bypasses_xsession;
}
-gboolean
-gdm_session_has_own_display_server (GdmSession *self)
-{
- return FALSE;
-}
-
void
gdm_session_select_program (GdmSession *self,
const char *text)
diff --git a/daemon/gdm-session.h b/daemon/gdm-session.h
index 1d264f4..d953302 100644
--- a/daemon/gdm-session.h
+++ b/daemon/gdm-session.h
@@ -111,7 +111,6 @@ const char *gdm_session_get_display_device (GdmSession *sessi
const char *gdm_session_get_display_seat_id (GdmSession *session);
const char *gdm_session_get_session_id (GdmSession *session);
gboolean gdm_session_bypasses_xsession (GdmSession *session);
-gboolean gdm_session_has_own_display_server (GdmSession *session);
void gdm_session_start_conversation (GdmSession *session,
const char *service_name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]