[gnome-shell] [panel] don't empty out the app menu when the panel itself gets focus
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] [panel] don't empty out the app menu when the panel itself gets focus
- Date: Tue, 20 Jul 2010 19:03:43 +0000 (UTC)
commit 539ad8196eaff0bd658192f0b9e933ff8cabe408
Author: Dan Winship <danw gnome org>
Date: Fri Jul 2 15:36:56 2010 -0400
[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 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/panel.js b/js/ui/panel.js
index be36da0..24aa25a 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();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]