diff --git a/js/ui/overview.js b/js/ui/overview.js index 16fbcc878..e645516cc 100644 --- a/js/ui/overview.js +++ b/js/ui/overview.js @@ -238,6 +238,17 @@ const Overview = new Lang.Class({ opacity: 0 }); this._overview.add_actor(this._messageTrayGhost); + this._viewSelector.connect('search-begin', Lang.bind(this, + function() { + this._dash.hide(); + this._thumbnailsBox.hide(); + })); + this._viewSelector.connect('search-cancelled', Lang.bind(this, + function() { + this._dash.show(); + this._thumbnailsBox.show(); + })); + Main.layoutManager.connect('monitors-changed', Lang.bind(this, this._relayout)); this._relayout(); }, diff --git a/js/ui/viewSelector.js b/js/ui/viewSelector.js index 44c01a94d..d2cdb57c9 100644 --- a/js/ui/viewSelector.js +++ b/js/ui/viewSelector.js @@ -258,6 +258,7 @@ const ViewSelector = new Lang.Class({ }, _searchCancelled: function() { + this.emit('search-cancelled'); this._showPage(this._showAppsButton.checked ? this._appsPage : this._workspacesPage); @@ -326,6 +327,7 @@ const ViewSelector = new Lang.Class({ this._searchResults.startingSearch(); } if (this.active) { + this.emit('search-begin'); this._entry.set_secondary_icon(this._activeIcon); if (this._iconClickedId == 0) {