overview: Get rid of panel ghost actor
Right now we use a ClutterClone ghost of the panel simply to add some spacing to the top monitor edge. We can remove the panelGhost by adjusting the allocations of all the parts of the overview ourselves inside ControlsManagers vfunc_allocate, this should also work with extensions that move the panel somewhere else. This makes the initial relayout of the overview significantly faster, because we now no longer have to relayout the whole panel in the process. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1755>
This commit is contained in:
@ -85,16 +85,6 @@ class OverviewActor extends St.BoxLayout {
|
||||
|
||||
this.add_constraint(new LayoutManager.MonitorConstraint({ primary: true }));
|
||||
|
||||
// Add a clone of the panel to the overview so spacing and such is
|
||||
// automatic
|
||||
let panelGhost = new St.Bin({
|
||||
child: new Clutter.Clone({ source: Main.panel }),
|
||||
reactive: false,
|
||||
opacity: 0,
|
||||
});
|
||||
this.add_actor(panelGhost);
|
||||
|
||||
|
||||
this._controls = new OverviewControls.ControlsManager();
|
||||
this.add_child(this._controls);
|
||||
}
|
||||
|
Reference in New Issue
Block a user