esjeon / kwin-forceblur

Force-enable blur effect to user-specified windows
MIT License
151 stars 8 forks source link

Doesn't work properly with GTK CSD apps on Plasma 5.18 #7

Closed a-parhom closed 4 years ago

a-parhom commented 4 years ago

It seems, that the shadow applied to CSD windows is treated as if it is the window itself:

tilix

esjeon commented 4 years ago

Okay, the cause of the problem is very very simple: CSD shadow is actually a part of its parent window, and shares the pixel buffer. KWin internally compensates for this in its WM logic, but the blur plugin uses the original window geometry.

One way to fix this is to properly set _KDE_NET_WM_BLUR_BEHIND_REGION to the actual window region, but one also should keep the value in sync whenever the window is resized. This instantly blows up the complexity of the script, but, yeah, worth a shot.

a-parhom commented 4 years ago

This commit works great, thank you!

esjeon commented 4 years ago

This issue has been resolved.