mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
searchDisplay: Check the provider container for visibility
It's the provider container that might be !visible, not the individual results.
This commit is contained in:
parent
ce9c1a1f7a
commit
c2f304f3bc
1 changed files with 5 additions and 2 deletions
|
|
@ -348,8 +348,11 @@ const SearchResults = new Lang.Class({
|
|||
if (meta.hasPendingResults)
|
||||
return;
|
||||
|
||||
if (!meta.actor.visible)
|
||||
continue;
|
||||
|
||||
let firstResult = meta.resultDisplay.getFirstResult();
|
||||
if (firstResult && firstResult.actor.visible) {
|
||||
if (firstResult) {
|
||||
newDefaultResult = firstResult;
|
||||
break; // select this one!
|
||||
}
|
||||
|
|
@ -436,7 +439,7 @@ const SearchResults = new Lang.Class({
|
|||
},
|
||||
|
||||
activateDefault: function() {
|
||||
if (this._defaultResult && this._defaultResult.actor.visible)
|
||||
if (this._defaultResult)
|
||||
this._defaultResult.activate();
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue