flexagoon / rounded-window-corners

A GNOME extension that adds rounded corners to all windows
GNU General Public License v3.0
227 stars 12 forks source link

compiz window effect incompatibility #14

Closed Cm4nXD closed 2 months ago

Cm4nXD commented 4 months ago

shadow doesn't move when using compiz window effect extension.

Potentially you could make it so that it hides the shadow when moving a window? Similar to the compiz alike magic lamp effect?

Yumeo0 commented 3 months ago

For me it just cuts off the windows in weird ways when I move them.

https://github.com/flexagoon/rounded-window-corners/assets/60485613/89903ab7-b264-47be-9b79-98a55404d3f0

Yumeo0 commented 3 months ago

I just found out that the error is different for different applications. Firefox gets cut off and VSCodium has the weird shadow bug that the original poster mentioned.

flexagoon commented 2 months ago

Unfortunately, I don't think it will be possible to implement compatibility with this effect. This effect draws a custom shadow which is rectangular, so it can't adjust for the weird shape of wobbly windows. I don't know if the compiz effect has some sort of way to get the window shape (I think it doesn't), but even if it does, writing a shader that can draw complex shadows like this is very hard and not something I can do.

k2helix commented 2 months ago

Maybe disabling shadow opacity when moving a window and compiz windows effect is enabled could be a workaround? Right now, in order to use both plugins shadows opacity must be set to 0, which leads to confusion when trying to distinguish windows. So if this could be done only when the window is moving, it would be way easier.