WillPower3309 / swayfx

SwayFX: Sway, but with eye candy!
MIT License
1.2k stars 47 forks source link

fix: consider dim introduced transparency for blur #184

Closed rti closed 1 year ago

rti commented 1 year ago

The blur rendering logic includes the optimization to render blur only for transparent surfaces. This patch considers surfaces as transparent also when the transparency is only introduced by the dim color.

We can now have windows, that are opaque by default become transparent with blurred background as soon as they loose focus.

Example configuration:

blur on
blur_passes 3
blur_radius 5

default_dim_inactive 0.15
dim_inactive_colors.unfocused #00000000

screenshot-20230604210154

WillPower3309 commented 1 year ago

Good catch!