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:
parent
a1f88fc17f
commit
37cbfe29cf
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user