[gnome-shell/gnome-3-28] layout: Mark chrome container as NO_LAYOUT
- From: Marco Trevisan <marcotrevi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-28] layout: Mark chrome container as NO_LAYOUT
- Date: Fri, 31 Aug 2018 14:27:23 +0000 (UTC)
commit b359b937e92968a8fc939d5fc25bf7b6430a22f2
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Aug 10 19:37:48 2018 +0000
layout: Mark chrome container as NO_LAYOUT
Showing and hiding children does not affect the allocation of the uiGroup
nor its other children. We can avoid full relayout/redraw in those
situations.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/197
(cherry picked from commit 73d8c82640f6125cfbf80b791769a6e3903d6c0c)
js/ui/layout.js | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/js/ui/layout.js b/js/ui/layout.js
index 6f810395d..8f08d3768 100644
--- a/js/ui/layout.js
+++ b/js/ui/layout.js
@@ -203,6 +203,7 @@ var LayoutManager = new Lang.Class({
// Set up stage hierarchy to group all UI actors under one container.
this.uiGroup = new Shell.GenericContainer({ name: 'uiGroup' });
+ this.uiGroup.set_flags(Clutter.ActorFlags.NO_LAYOUT);
this.uiGroup.connect('allocate', (actor, box, flags) => {
let children = actor.get_children();
for (let i = 0; i < children.length; i++)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]