summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2013-08-24 16:57:36 +1200
committerRobert Ancell <robert.ancell@canonical.com>2013-08-24 16:57:36 +1200
commit3601fee960a0e09f02ab4c20f921c952a2a21fa9 (patch)
treeb8e1a6ac00ebffbb41edafea940e516365b475e7
parent4a908eb28e0fb8583d0d16e4c95eabca0da72d28 (diff)
parent01ff6217ceae98c90dd595b9b286e148180936c8 (diff)
downloadlightdm-3601fee960a0e09f02ab4c20f921c952a2a21fa9.tar.gz
Merge with trunk
-rw-r--r--src/seat.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/seat.c b/src/seat.c
index 0739c0f0..c102ccaa 100644
--- a/src/seat.c
+++ b/src/seat.c
@@ -186,10 +186,6 @@ seat_set_active_session (Seat *seat, Session *session)
g_return_if_fail (seat != NULL);
- /* Unlock this session */
- if (session != seat->priv->active_session && !IS_GREETER (session))
- session_unlock (session);
-
SEAT_GET_CLASS (seat)->set_active_session (seat, session);
/* Stop any greeters */
@@ -935,6 +931,7 @@ greeter_start_session_cb (Greeter *greeter, SessionType type, const gchar *sessi
{
l_debug (seat, "Returning to existing user session %s", username);
session_stop (session);
+ session_unlock (existing_session);
seat_set_active_session (seat, existing_session);
return TRUE;
}