When GridSearchResults::_getMaxDisplayedResults() is called after the first character has been entered in the search, GridSearchResults has no children yet. _getMaxDisplayedResults() tries to determine the maximum number of search results based on how often the largest child would fit into the allocated size or -1 (i.e. no limit) if there are no children. So for the initial search there is no limit and in the app search all matching apps get added as possible results, which due to the search term being only a single character is almost all installed apps. This now causes allocation to be run for all these results, despite the vast majority of them never being visible, which on slower machines can cause noticeable delays before the search results are displayed. This now adds the ability for search providers to specify a maximum number of results that gets used instead of -1 when specified. By being provider specific this means extensions implementing their own providers will not be affected by this. Further this sets the maximum for the app search provider to 6 as per the current designs. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7155 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3004>
GNOME Shell
GNOME Shell provides core user interface functions for the GNOME desktop, like switching to windows and launching applications. GNOME Shell takes advantage of the capabilities of modern graphics hardware and introduces innovative user interface concepts to provide a visually attractive and easy to use experience.
For more information about GNOME Shell, including instructions on how to build GNOME Shell from source and how to get involved with the project, see the project wiki.
Bugs should be reported to the GNOME bug tracking system. Please refer to the Schedule wiki page to see the supported versions.
Contributing
To contribute, open merge requests at https://gitlab.gnome.org/GNOME/gnome-shell.
Commit messages should follow the GNOME commit message
guidelines. If a merge request
fixes an existing issue, it is good practice to append the full issue URL
to each commit message. Try to always prefix commit subjects with a relevant
topic, such as panel:
or status/network:
, and it's always better to write
too much in the commit message body than too little.
Default branch
The default development branch is main
. If you still have a local
checkout under the old name, use:
git checkout master
git branch -m master main
git fetch
git branch --unset-upstream
git branch -u origin/main
git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/main
License
GNOME Shell is distributed under the terms of the GNU General Public License, version 2 or later. See the COPYING file for details.