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

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