From e5270cb6ec3cb67d3254127e3f39d2c94850a2e9 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Wed, 18 Mar 2015 12:44:19 -0400 Subject: [PATCH] Revert "loginDialog: Don't arbitrarily pick a random session for the user" This reverts commit 6d40cb98e7e7a24f66662f0a06ecf8e93ed5dea2. https://bugzilla.gnome.org/show_bug.cgi?id=740142 --- js/gdm/loginDialog.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js index aaf55f381..8da1b5501 100644 --- a/js/gdm/loginDialog.js +++ b/js/gdm/loginDialog.js @@ -354,6 +354,9 @@ const SessionMenuButton = new Lang.Class({ this._menu.addMenuItem(item); this._items[id] = item; + if (!this._activeSessionId) + this.setActiveSession(id); + item.connect('activate', Lang.bind(this, function() { this.setActiveSession(id); }));