From 37cbfe29cf1d107cfeb6847cdf0efc7e95ca42b8 Mon Sep 17 00:00:00 2001 From: David Foerster Date: Sun, 26 Feb 2012 20:45:47 +0100 Subject: [PATCH] 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 --- js/ui/userMenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/userMenu.js b/js/ui/userMenu.js index 6c7de8ed6..12e49d415 100644 --- a/js/ui/userMenu.js +++ b/js/ui/userMenu.js @@ -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 {