workspacesView: Derive workspace state from fit mode

Derive the workspace state WorkspacesView's workspaces from the fit mode.
Extra workspaces still run the zoom animations as before.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1613>
This commit is contained in:
Georges Basile Stavracas Neto
2021-01-01 13:10:19 -03:00
committed by Marge Bot
parent 176ea3b1ef
commit 1adcbaab46
2 changed files with 8 additions and 3 deletions

View File

@ -1341,4 +1341,8 @@ class Workspace extends St.Widget {
return false;
}
get stateAdjustment() {
return this.layout_manager.stateAdjustment;
}
});