Skip to content

st/scroll-view: Only update fade effect on CSS changes if CSS sets it

Jonas Dreßler requested to merge verdre/gnome-shell:fix-more-fallout into main

The fade effect can also be added to the scroll view programatically instead of using CSS via the st_scroll_view_update_fade_effect() API.

We make use of this API in the appDisplay, but since commit ba547ec1 the fade margins get overridden to 0.0 from the ::style-changed handler. Fix this by only setting the fade margins when CSS actually defines a custom vfade/hfade offset.

Related: #5079 (closed)

Merge request reports