overview: Hide search results while leaving overview

There is currently no proper transition from search results
to the session: Only the top bar fades, but the rest of the
screen just changes abruptly at the end of the transition.

Fix this by hiding search results before leaving the overview,
so the regular transition can take place.

Close https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3821

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3152>
This commit is contained in:
Suryashankar Das 2021-03-13 01:19:10 +05:30 committed by Florian Müllner
parent 9a528ca7bb
commit 3cb1fb7428
2 changed files with 5 additions and 0 deletions

View File

@ -720,6 +720,7 @@ class ControlsManager extends St.Widget {
}
prepareToLeaveOverview() {
this._searchController.prepareToLeaveOverview();
this._workspacesDisplay.prepareToLeaveOverview();
}

View File

@ -117,6 +117,10 @@ export const SearchController = GObject.registerClass({
this._setSearchActive(false);
}
prepareToLeaveOverview() {
this._setSearchActive(false);
}
vfunc_unmap() {
this.reset();