workspacesView: Add primary view to workspaces display

Boy, does this commit feel good.

While the workspaces view on the primary monitor *appears* as part of
the overall overview hierarchy, this hasn't actually been the case
until now. We synchronized its size and (stage) position to match
the workspaces display, but actually kept in a separate layer for
the transitions to and from the overview.

But now that the new layout manager slides out completely during the
overview transitions, the workspaces display starts out covering the
entire work area, which is exactly what we need for the transition.

So finally stop faking it, and actually make the primary workspaces
view a child of the workspaces display.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1624>
This commit is contained in:
Florian Müllner
2020-06-26 18:38:28 +02:00
committed by Marge Bot
parent 1ad1db406e
commit 741d6abb97
2 changed files with 24 additions and 61 deletions

View File

@ -224,7 +224,6 @@ var Overview = class {
this._overview = new OverviewActor();
this._overview._delegate = this;
Main.layoutManager.overviewGroup.add_child(this._overview);
this._overview.connect('notify::allocation', () => this.emit('relayout'));
this._shellInfo = new ShellInfo();