Not sure if this is really a problem with ShapeCorners, Yet Another Magic Lamp (YAML) or KWin, but I have this peculiar bug with window shadows during minimization and maximization when both ShapeCorners and YAML are enabled. Window shadows become too dark during minimization/maximization (almost as if they were painted twice). However there are some exceptions to make it more confusing: Discover, Desktop Settings and Latte-Dock windows (Kirigami 2 based windows?) work just fine.
Using ShapeCorners with any other minimization/maximization effect I've tried works as expected (meaning window shadows are drawn correctly) with all types of windows. I've tried to read and understand how both effects work, but I am not too familiar with the inner workins of KWin (or even with C++). I've had this issue since forever (meaning it didn't just appear overnight after certain patch/update).
Here is how it looks for me:
ShapeCorners + Magic Lamp (default built-in effect): https://imgur.com/a/pZjms00
ShapeCorners + Yet Another Magic Lamp: https://imgur.com/a/xubI74d
I wish I could bring more light to this issue, but so far this is all I have.
Specs:
KDE Plasma Version: 5.17.2
KDE Frameworks Version: 5.63.0
Qt Version: 5.13.1
Kernel Version: 5.3.7-arch1-2-ARCH
Output of the command "qdbus org.kde.KWin /KWin supportInformation": https://pastebin.com/kWFH82Hc
Just installed the effect... I get it too, altho, I'm not completely sure how it's even possible, since, if you look closely at the corners right when clicking 'minimize' you'll see that the corners are not even rounded. ShapeCorners is not 'active' when there is another effect present.
I really don't know what to say, I don't want to assign blame or such, but atm I fail to see how this could even be related to shapecorners (but apparently it is), I'll have to investigate further.
Thanks for bringing it to my attention.
Yeah, ShapeCorners gets disabled when window starts to minimize (as it should), but somehow the shadow still glitches. And not all windows do that. I'm not sure if this actually has anything to do with ShapeCorners, but I'm hoping maybe someone with more knowledge and experiece would have a better chance at understanding the cause here.
And thanks for creating this beautiful effect! Especially GTK apps with CSD look very sleek with ShapeCorners.
I worked around the issue in ShapeCorners, it's fixed.
Oh wow! That was fast! Thank you so much! The issue seems to be gone! What did you do?
I disabled shapecorners whenever there is a 'transformed' window, so now all windows get square corners while one is animating (minimizing).