[gnome-shell] panel: Check for appMenu button's reactivity before opening
- From: Florian MÃllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] panel: Check for appMenu button's reactivity before opening
- Date: Fri, 18 May 2012 15:38:23 +0000 (UTC)
commit 82c2f5221d96daccae9272496088eb704b4804cc
Author: Florian MÃllner <fmuellner gnome org>
Date: Fri May 18 16:04:47 2012 +0200
panel: Check for appMenu button's reactivity before opening
When the appMenu is not available, for instance when no windows are
open (on the current workspace), we make its actor unreactive to
"hide" it from keynav. However the menu can still be triggered
erroneously when using the corresponding keyboard shortcut, so
add a check for the actor's reactivity there as well.
https://bugzilla.gnome.org/show_bug.cgi?id=676316
js/ui/panel.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/panel.js b/js/ui/panel.js
index 329f118..772bc77 100644
--- a/js/ui/panel.js
+++ b/js/ui/panel.js
@@ -1115,8 +1115,8 @@ const Panel = new Lang.Class({
openAppMenu: function() {
let menu = this._appMenu.menu;
- if (Main.overview.visible || menu.isOpen)
- return;
+ if (!this._appMenu.actor.reactive || menu.isOpen)
+ return;
menu.open();
menu.actor.navigate_focus(null, Gtk.DirectionType.TAB_FORWARD, false);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]