workspacesView: Decouple syncing geometry from updating views

This gives us more control over when the geometry is synced. We
will soon use that to keep the primary view at the work area
geometry while fading to the overview.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1353
This commit is contained in:
Florian Müllner 2020-07-07 13:23:50 +02:00
parent 52a7481ba6
commit 30ff76272e

View File

@ -555,6 +555,7 @@ class WorkspacesDisplay extends St.Widget {
animationType = AnimationType.ZOOM;
this._workspacesViews[i].animateToOverview(animationType);
}
this._syncWorkspacesActualGeometry();
}
this._restackedNotifyId =
@ -614,6 +615,7 @@ class WorkspacesDisplay extends St.Widget {
return;
this._updateWorkspacesViews();
this._syncWorkspacesActualGeometry();
}
_updateWorkspacesViews() {
@ -633,9 +635,6 @@ class WorkspacesDisplay extends St.Widget {
this._workspacesViews.push(view);
Main.layoutManager.overviewGroup.add_actor(view);
}
if (this._actualGeometry)
this._syncWorkspacesActualGeometry();
}
_getMonitorIndexForEvent(event) {