appDisplay: Add folder dialog to overview group

Right now, the app folder dialog isn't really a dialog,
since it is actually added to the AppDisplay. Furthermore,
having it added in AppDisplay may mess up with its sizing
calculations, since AppDisplay has a ClutterBinLayout and
the folder dialog has a fairly large minimum size.

Add the folder dialog to the overview group. Next commits
will adjust various actors to be able to better handle it.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1301
This commit is contained in:
Georges Basile Stavracas Neto 2020-06-04 01:37:31 -03:00
parent fdfcacf1db
commit d8e6f654a3

View File

@ -728,7 +728,7 @@ class AppDisplay extends BaseAppView {
} }
addFolderDialog(dialog) { addFolderDialog(dialog) {
this.add_child(dialog); Main.layoutManager.overviewGroup.add_child(dialog);
dialog.connect('open-state-changed', (o, isOpen) => { dialog.connect('open-state-changed', (o, isOpen) => {
this._eventBlocker.visible = isOpen; this._eventBlocker.visible = isOpen;
@ -1759,6 +1759,8 @@ var AppFolderDialog = GObject.registerClass({
if (!this._isOpen) if (!this._isOpen)
return; return;
this.get_parent().set_child_above_sibling(this, null);
this._needsZoomAndFade = true; this._needsZoomAndFade = true;
this.show(); this.show();