[panel] don't empty out the app menu when the panel itself gets focus

https://bugzilla.gnome.org/show_bug.cgi?id=623429
This commit is contained in:
Dan Winship 2010-07-02 15:36:56 -04:00
parent adbf3b1c37
commit 539ad8196e

View File

@ -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();