From 88effdd9c36d44973035449ca2417e37df1b8d9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 22 Aug 2012 15:42:27 +0200 Subject: [PATCH] appMenu: Make show() a no-op in locked state The app menu is hidden when entering the lock screen, however it might be shown again while the lock is still in place - we don't want this ever to be the case, so make show() a no-op while the screen is locked. https://bugzilla.gnome.org/show_bug.cgi?id=682475 --- js/ui/panel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/panel.js b/js/ui/panel.js index d9cf5983c..943079f2d 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -285,7 +285,7 @@ const AppMenuButton = new Lang.Class({ }, show: function() { - if (this._visible) + if (this._visible || Main.screenShield.locked) return; this._visible = true;