matinlotfali / KDE-Rounded-Corners

Rounds the corners of your windows in KDE Plasma 5 and 6
GNU General Public License v3.0
638 stars 22 forks source link

Weird interaction between Zed editor, Rounded corners and possibly Krohnkite #272

Open Haraven opened 3 months ago

Haraven commented 3 months ago

Description

I am not even sure where to report this, so I'll start here and see where it leads.

I am using Rounded Corners together with Krohnkite. All my apps look and work just fine except the Zed Editor. Zed, for some reason, has parts of its UI cut off when I use this setup.

If I disable Rounded Corners, the UI looks fine. Alternatively, if I disable Krohnkite (and keep Rounded Corners enabled), the UI looks fine also. Of course, if I disable both, the UI looks fine too.

Is this a Zed Editor issue or some weird bug resulting from the interaction of Zed with the desktop effect/kwin script?

Video

https://github.com/user-attachments/assets/96128bb4-6f2e-402b-ac95-559dad925bd2

System information

matinlotfali commented 3 months ago

Please allow me to install krohnkite and try it out.

Haraven commented 3 months ago

Sure thing, thank you.

matinlotfali commented 3 months ago

I've tried very hard but I can't reproduce this.

Haraven commented 3 months ago

Maybe the problem has to do with the gaps between windows and/or roundedness values?

For Rounded Corners, I'm using 10px corner roundedness (active & inactive windows) with a 25px shadow and a 1px outline.

For Krohnkite, I'm using 8px screen gaps with 8px gaps between tiles. The ratio of the max width to screen height is 1.6.

taj-ny commented 3 months ago

This appears to happen only on Wayland and when window frame is disabled with a window rule (Krohnkite can also do this for tiled windows but not by default). Looks like Zed paints the window contents where the client-side shadows are supposed to be, so that area is cut off by the effect.

Haraven commented 3 months ago

Thanks very much for looking into this!

So, this is a Zed issue?