aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2014-04-10 03:55:12 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2014-04-10 03:55:12 +0200
commit4ad55d6c928cff40ed58a6a12971355a6757bc53 (patch)
tree7e04a5374b1411d0e1cda3dbf71993cc95848d7c /src
parenta302870b4955b0f20573fc4ddb12f4fa3aded911 (diff)
downloadayatana-indicator-session-4ad55d6c928cff40ed58a6a12971355a6757bc53.tar.gz
ayatana-indicator-session-4ad55d6c928cff40ed58a6a12971355a6757bc53.tar.bz2
ayatana-indicator-session-4ad55d6c928cff40ed58a6a12971355a6757bc53.zip
Actions: lock current session also when switching to greeter and another user
Diffstat (limited to 'src')
-rw-r--r--src/backend-dbus/actions.c4
1 files changed, 4 insertions, 0 deletions
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);