From 539ad8196eaff0bd658192f0b9e933ff8cabe408 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Fri, 2 Jul 2010 15:36:56 -0400 Subject: [PATCH] [panel] don't empty out the app menu when the panel itself gets focus https://bugzilla.gnome.org/show_bug.cgi?id=623429 --- js/ui/panel.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/js/ui/panel.js b/js/ui/panel.js index be36da03a..24aa25a90 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -439,6 +439,14 @@ AppMenuButton.prototype = { this._stopAnimation(); } + if (!focusedApp) { + // If the app has just lost focus to the panel, pretend + // nothing happened; otherwise you can't keynav to the + // app menu. + if (global.stage_input_mode == Shell.StageInputMode.FOCUSED) + return; + } + if (this._iconBox.child != null) this._iconBox.child.destroy(); this._iconBox.hide();