workspacesView: Do not skip entire overview transition

Since commit af543daf1c, we skip the overview transition when the
actual geometry hasn't been set yet. However with the new layout
manager, the only bit that still needs the separate geometry is
the transition of the view, the workspaces can do their transition
just fine.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2969
This commit is contained in:
Florian Müllner 2020-07-11 18:10:18 +02:00 committed by Georges Basile Stavracas Neto
parent 9bb64da895
commit 9e8883c922

View File

@ -551,7 +551,6 @@ class WorkspacesDisplay extends St.Widget {
this.show(); this.show();
this._updateWorkspacesViews(); this._updateWorkspacesViews();
if (this._actualGeometry) {
for (let i = 0; i < this._workspacesViews.length; i++) { for (let i = 0; i < this._workspacesViews.length; i++) {
let animationType; let animationType;
if (fadeOnPrimary && i == this._primaryIndex) if (fadeOnPrimary && i == this._primaryIndex)
@ -561,9 +560,8 @@ class WorkspacesDisplay extends St.Widget {
this._workspacesViews[i].animateToOverview(animationType); this._workspacesViews[i].animateToOverview(animationType);
} }
if (!fadeOnPrimary) if (this._actualGeometry && !fadeOnPrimary)
this._syncWorkspacesActualGeometry(); this._syncWorkspacesActualGeometry();
}
this._restackedNotifyId = this._restackedNotifyId =
Main.overview.connect('windows-restacked', Main.overview.connect('windows-restacked',