Skip to content

Shrink shadow extents

Alice Mikhaylenko requested to merge wip/exalm/shadow-extents into master

Long time ago, Cairo shadows in both GTK3 and 4 were drawn at a size about twice their radius. Eventually this was fixed but the shadow extents are still calculated for the previous size and appear unreasonably large: for example, 141px for a 50px radius shadow. This can get very noticeable in places such as invisible window frame which gets included into screenshots.

!3419 (merged) just divides the radius by 2 when drawing a shadow with Cairo, do the same when calculating extents.

See #3841 (closed)


Before:

Screenshot_from_2021-08-04_14-48-23

After:

Screenshot_from_2021-08-04_14-48-32

For comparison, GTK3 where the old extents actually match the shadow:

Screenshot_from_2021-08-04_14-49-22

Merge request reports