diff --git a/js/ui/statusMenu.js b/js/ui/statusMenu.js index adf5491f7..9c251b83c 100644 --- a/js/ui/statusMenu.js +++ b/js/ui/statusMenu.js @@ -218,7 +218,9 @@ StatusMenuButton.prototype = { if (this._haveSuspend && this._suspendOrPowerOffItem.state == PopupMenu.PopupAlternatingMenuItemState.DEFAULT) { - this._upClient.suspend_sync(null); + this._screenSaverProxy.LockRemote(Lang.bind(this, function() { + this._upClient.suspend_sync(null); + })); } else { Util.spawn(['gnome-session-quit', '--power-off']); }