[gnome-shell] appMenu: Make show() a no-op in locked state

commit 88effdd9c36d44973035449ca2417e37df1b8d9c
Author: Florian MÃllner <fmuellner gnome org>
Date:   Wed Aug 22 15:42:27 2012 +0200

    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.

 js/ui/panel.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/js/ui/panel.js b/js/ui/panel.js
index d9cf598..943079f 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)
         this._visible = true;

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]