[gnome-shell/gnome-3-8] layout: Keep the top_window group above newly added chrome
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-8] layout: Keep the top_window group above newly added chrome
- Date: Wed, 26 Jun 2013 11:39:53 +0000 (UTC)
commit df89d4dc59fd448abc10d9f3e0883befa38da526
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Jun 26 10:41:04 2013 +0200
layout: Keep the top_window group above newly added chrome
The top_window_group was introduced for popup windows that should
appear above system chrome, but as the group itself is just a child
of Main.uiGroup, chrome that is added after top_window_group will
still be stacked on top.
At least correct the stacking for actors added via addChrome().
https://bugzilla.gnome.org/show_bug.cgi?id=702338
js/ui/layout.js | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/layout.js b/js/ui/layout.js
index 0bb887e..e25b3bd 100644
--- a/js/ui/layout.js
+++ b/js/ui/layout.js
@@ -728,6 +728,8 @@ const LayoutManager = new Lang.Class({
// and shown otherwise)
addChrome: function(actor, params) {
this.uiGroup.add_actor(actor);
+ if (this.uiGroup.contains(global.top_window_group))
+ this.uiGroup.set_child_below_sibling(actor, global.top_window_group);
this._trackActor(actor, params);
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]