[gnome-shell/wip/jimmac/dash-icon-spacing: 67/72] overviewControls: Reset search when leaving overview




commit 7b0b49fcead7f16ca8ab325d342ae371ebc367fd
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Fri Jan 15 10:36:06 2021 -0300

    overviewControls: Reset search when leaving overview
    
    So that it both is cleaned up, and to make sure we go back to the
    app grid / workspaces view.

 js/ui/overviewControls.js | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js
index 6ab823432a..ebca2b59d0 100644
--- a/js/ui/overviewControls.js
+++ b/js/ui/overviewControls.js
@@ -453,6 +453,7 @@ class ControlsManager extends St.Widget {
     animateFromOverview(onComplete) {
         this._animating = true;
 
+        this._searchController.reset();
         this._workspacesDisplay.prepareToLeaveOverview();
         if (!this._workspacesDisplay.activeWorkspaceHasMaximizedWindows())
             Main.overview.fadeInDesktop();
@@ -501,6 +502,7 @@ class ControlsManager extends St.Widget {
         this._animating = true;
 
         if (target === ControlsState.HIDDEN) {
+            this._searchController.reset();
             this._workspacesDisplay.prepareToLeaveOverview();
             if (!this._workspacesDisplay.activeWorkspaceHasMaximizedWindows())
                 Main.overview.fadeInDesktop();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]