From e0cf6b3176c6789990a8f9557b19111d965c793a Mon Sep 17 00:00:00 2001 From: Suryashankar Das Date: Sat, 13 Mar 2021 01:19:10 +0530 Subject: [PATCH] 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: (cherry picked from commit 3cb1fb74288ec6461796ae999c4c1c9d631f36c9) --- js/ui/overviewControls.js | 1 + js/ui/searchController.js | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js index 29471ee6f..60d115b55 100644 --- a/js/ui/overviewControls.js +++ b/js/ui/overviewControls.js @@ -714,6 +714,7 @@ class ControlsManager extends St.Widget { } prepareToLeaveOverview() { + this._searchController.prepareToLeaveOverview(); this._workspacesDisplay.prepareToLeaveOverview(); } diff --git a/js/ui/searchController.js b/js/ui/searchController.js index 7df271a84..06ed05d27 100644 --- a/js/ui/searchController.js +++ b/js/ui/searchController.js @@ -117,6 +117,10 @@ export const SearchController = GObject.registerClass({ this._setSearchActive(false); } + prepareToLeaveOverview() { + this._setSearchActive(false); + } + vfunc_unmap() { this.reset();