• Marco Trevisan's avatar
    iconGrid: Don't hide children inside allocation loop · 520cea93
    Marco Trevisan authored
    Hiding a child implies a parent reallocation, and IconGrid does it for the
    children that doesn't fit in the available space, but this could lead to an
    allocation recursion cycle. This has been introduced by commit 0e0574a0 to
    reduce CPU usage not to using JS vfuncs.
    
    To avoid this, toggle the children opacity instead so that we can achieve the
    same visibility result, without any reallocation need.
    In this way we also fix the case where hidden children can be shown again,
    as _getVisibleChildren doesn't filter-out transparent ones, restoring the
    pre-commit 0e0574a0 behavior.
    
    Fixes #1336
    
    !559
    520cea93
Name
Last commit
Last update
.gitlab-ci Loading commit data...
.settings Loading commit data...
data Loading commit data...
docs/reference Loading commit data...
js Loading commit data...
man Loading commit data...
meson Loading commit data...
po Loading commit data...
src Loading commit data...
subprojects Loading commit data...
test Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.gitmodules Loading commit data...
COPYING Loading commit data...
HACKING.md Loading commit data...
NEWS Loading commit data...
README.md Loading commit data...
README.mdwn Loading commit data...
cldr2json.py Loading commit data...
config.h.meson Loading commit data...
gnome-shell.doap Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...