From 388cfa36958cd86dff81331aec394efa7773677f Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Sat, 27 Aug 2011 23:44:04 -0400 Subject: [PATCH] panelMenu: Separate from ui chrome layer The chrome layer contains the user interface elements (e.g., the panel) that disappear when fullscreen windows get displayed. Panel menus are currently put in the chrome layer, but don't need to be, since they are only displayed when the user is interacting with the shell and not a fullscreen application. Putting panel menus in the chrome layer does mean they will get stacked below shell interface elements that aren't in the chrome layer, though. This commit changes panel menus to be on the same layer as most other shell elements, so they get properly stacked above those elements. https://bugzilla.gnome.org/show_bug.cgi?id=657082 --- js/ui/panelMenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/panelMenu.js b/js/ui/panelMenu.js index 44e2078b8..151f35afa 100644 --- a/js/ui/panelMenu.js +++ b/js/ui/panelMenu.js @@ -28,7 +28,7 @@ Button.prototype = { this.menu.actor.add_style_class_name('panel-menu'); this.menu.connect('open-state-changed', Lang.bind(this, this._onOpenStateChanged)); this.menu.actor.connect('key-press-event', Lang.bind(this, this._onMenuKeyPress)); - Main.layoutManager.addChrome(this.menu.actor); + Main.uiGroup.add_actor(this.menu.actor); this.menu.actor.hide(); },