From 3cb1fb74288ec6461796ae999c4c1c9d631f36c9 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: --- 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 4ba4657ba..c48efffbe 100644 --- a/js/ui/overviewControls.js +++ b/js/ui/overviewControls.js @@ -720,6 +720,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 532a6d3ed..be5d6cfa4 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();