From b359b937e92968a8fc939d5fc25bf7b6430a22f2 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 10 Aug 2018 19:37:48 +0000 Subject: [PATCH] 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++)