Fix screen locking on suspend from user menu

Lock the session instead of activating the screensaver

https://bugzilla.gnome.org/show_bug.cgi?id=670820
This commit is contained in:
David Foerster 2012-02-26 20:45:47 +01:00 committed by Adel Gadllah
parent a1f88fc17f
commit 37cbfe29cf

View File

@ -719,7 +719,7 @@ const UserMenuButton = new Lang.Class({
if (this._haveSuspend &&
this._suspendOrPowerOffItem.state == PopupMenu.PopupAlternatingMenuItemState.DEFAULT) {
// Ensure we only suspend after the screensaver has activated
this._screenSaverProxy.SetActiveRemote(true, Lang.bind(this, function() {
this._screenSaverProxy.LockRemote(true, Lang.bind(this, function() {
this._upClient.suspend_sync(null);
}));
} else {