Blame SOURCES/0001-workspacesView-Work-around-spurious-allocation-chang.patch

21e770
From b69b404118852f7955f60d1814f5e19ad61ce449 Mon Sep 17 00:00:00 2001
21e770
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
21e770
Date: Fri, 12 Jul 2019 03:26:51 +0000
21e770
Subject: [PATCH] workspacesView: Work around spurious allocation changes
21e770
21e770
For some reason, people are still seeing those after commit d5ebd8c8.
21e770
While this is something we really should figure out, we can work around
21e770
the issue by keeping the view actors hidden until the update is complete.
21e770
21e770
https://gitlab.gnome.org/GNOME/gnome-shell/issues/1065
21e770
---
21e770
 js/ui/workspacesView.js | 5 +++++
21e770
 1 file changed, 5 insertions(+)
21e770
21e770
diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js
21e770
index 069937d5a..e302296a6 100644
21e770
--- a/js/ui/workspacesView.js
21e770
+++ b/js/ui/workspacesView.js
21e770
@@ -666,10 +666,15 @@ var WorkspacesDisplay = class {
21e770
                                                this._scrollValueChanged.bind(this));
21e770
             }
21e770
 
21e770
+            // HACK: Avoid spurious allocation changes while updating views
21e770
+            view.actor.hide();
21e770
+
21e770
             this._workspacesViews.push(view);
21e770
             Main.layoutManager.overviewGroup.add_actor(view.actor);
21e770
         }
21e770
 
21e770
+        this._workspacesViews.forEach(v => v.actor.show());
21e770
+
21e770
         this._updateWorkspacesFullGeometry();
21e770
         this._updateWorkspacesActualGeometry();
21e770
     }
21e770
-- 
21e770
2.21.0
21e770