From 4ad55d6c928cff40ed58a6a12971355a6757bc53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Thu, 10 Apr 2014 03:55:12 +0200 Subject: Actions: lock current session also when switching to greeter and another user --- src/backend-dbus/actions.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/backend-dbus') diff --git a/src/backend-dbus/actions.c b/src/backend-dbus/actions.c index d99f81f..b5810a7 100644 --- a/src/backend-dbus/actions.c +++ b/src/backend-dbus/actions.c @@ -821,6 +821,8 @@ my_switch_to_greeter (IndicatorSessionActions * self) g_return_if_fail (p->dm_seat != NULL); + lock_current_session (self, TRUE); + display_manager_seat_call_switch_to_greeter (p->dm_seat, p->dm_seat_cancellable, NULL, NULL); @@ -847,6 +849,8 @@ my_switch_to_username (IndicatorSessionActions * self, const char * username) g_return_if_fail (p->dm_seat != NULL); + lock_current_session (self, TRUE); + display_manager_seat_call_switch_to_user (p->dm_seat, username, "", p->dm_seat_cancellable, NULL, NULL); -- cgit v1.2.3