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:
@ -555,6 +555,7 @@ class WorkspacesDisplay extends St.Widget {
|
|||||||
animationType = AnimationType.ZOOM;
|
animationType = AnimationType.ZOOM;
|
||||||
this._workspacesViews[i].animateToOverview(animationType);
|
this._workspacesViews[i].animateToOverview(animationType);
|
||||||
}
|
}
|
||||||
|
this._syncWorkspacesActualGeometry();
|
||||||
}
|
}
|
||||||
|
|
||||||
this._restackedNotifyId =
|
this._restackedNotifyId =
|
||||||
@ -614,6 +615,7 @@ class WorkspacesDisplay extends St.Widget {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
this._updateWorkspacesViews();
|
this._updateWorkspacesViews();
|
||||||
|
this._syncWorkspacesActualGeometry();
|
||||||
}
|
}
|
||||||
|
|
||||||
_updateWorkspacesViews() {
|
_updateWorkspacesViews() {
|
||||||
@ -633,9 +635,6 @@ class WorkspacesDisplay extends St.Widget {
|
|||||||
this._workspacesViews.push(view);
|
this._workspacesViews.push(view);
|
||||||
Main.layoutManager.overviewGroup.add_actor(view);
|
Main.layoutManager.overviewGroup.add_actor(view);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this._actualGeometry)
|
|
||||||
this._syncWorkspacesActualGeometry();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_getMonitorIndexForEvent(event) {
|
_getMonitorIndexForEvent(event) {
|
||||||
|
Reference in New Issue
Block a user