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>
(cherry picked from commit 3cb1fb7428)
This commit is contained in:
Suryashankar Das 2021-03-13 01:19:10 +05:30 committed by Florian Müllner
parent c8ac35235a
commit e0cf6b3176
2 changed files with 5 additions and 0 deletions

View file

@ -714,6 +714,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();