KDE-Rounded-Corners icon indicating copy to clipboard operation
KDE-Rounded-Corners copied to clipboard

Rounded corner display issue with WezTerm in KDE 6.3

Open a15355447898a opened this issue 1 year ago • 9 comments

I am using Arch Linux

KDE + Wayland environment 125% scaling

I am using aur/kwin-effect-rounded-corners-git, built with the latest git code

The display in wezterm looks like this, and the rounded corners don't seem to be working

Rounded corners display correctly in KDE 6.2, but not in KDE 6.3

Image

However, other software displays correctly, for example, Obsidian works fine

Image

a15355447898a avatar Feb 12 '25 16:02 a15355447898a

Image

nullptroma avatar Feb 13 '25 11:02 nullptroma

Can you check if transparency can be a culprit?

matinlotfali avatar Feb 14 '25 01:02 matinlotfali

Can you check if transparency can be a culprit?

Turning off the transparent background of wezterm doesn't change anything.

Image

However, if you disable the "No titlebar and borders" option for WezTerm in Window Management -> Window Rules, the rounded corners will appear above the border

But this isn't aesthetically pleasing, I'd like to continue hiding the borders

On KDE 6.2, Wezterm still has rounded corners after hiding borders, but it doesn't on KDE 6.3. There may be some KWin updates that need to be adapted

Image

Image

Image

a15355447898a avatar Feb 14 '25 05:02 a15355447898a

@a15355447898a Do you still have rounded corners in your Desktop Effects list?

I ask because I have the same issue. Rounding stopped after an update 2 days ago, the preferences in Desktop Effects disappeared. They don't appear through reinstall either. Arch Plasma 6.3.1

soulhotel avatar Feb 22 '25 01:02 soulhotel

@a15355447898a Do you still have rounded corners in your Desktop Effects list?

I ask because I have the same issue. Rounding stopped after an update 2 days ago, the preferences in Desktop Effects disappeared. They don't appear through reinstall either. Arch Plasma 6.3.1

I am currently still on KDE 6.3.0, and the rounded corners effect is still present in the Desktop Effects list.

a15355447898a avatar Feb 22 '25 08:02 a15355447898a

The problem persists on KDE Plasma 6.3.2

nullptroma avatar Feb 28 '25 20:02 nullptroma

I think I have the same issue so I'll add some further info and a possible solution:

Running on Plasma 6.3.3 and Wayland for me this only happens with terminals and only when the program is being tiled on a separate monitor (it works fine on the primary monitor). This happens no matter the opacity of the terminal and I tested it on alacritty and konsole.

Great thing is that the problem disappears if I switch to X11 so it might be an nvidia issue? (I'm sadly on a team-green GPU)

Hope this helps.

frivasa avatar Mar 24 '25 16:03 frivasa

I found an interesting detail. This happens because of scaling; at 100% scaling, everything works perfectly. It even works on different monitors: on my laptop, I have 165%, and on the external monitor, it's 100%. When I drag the window, I can see how the issue appears and then disappears.

nullptroma avatar Apr 04 '25 22:04 nullptroma

KDE 6.3.4, Wayland, 150% scaling. I notice that the rounded corners show up differently in different window sizes, the demo app base on electron running on wayland.

https://github.com/user-attachments/assets/fe8a1226-1b05-4534-af85-c5035bb91ff1

Edit: But if the app is running on xwayland, there are no display issues.

CAB233 avatar Apr 09 '25 10:04 CAB233

I've got those rounded corner issues for all app in general

Image

I removed KDE-rounded-corners which I had installed previously, and loggedout-in again, but the problem persists. I think the SVG for the header needs to be modified.

So I think it's not necessarily a KDE-Rounded-Corners issue.

KarimElsayad247 avatar May 12 '25 09:05 KarimElsayad247

Alternatively, we could try this effect https://github.com/taj-ny/kwin-effects-forceblur

edit: it doesn't fix anything

KarimElsayad247 avatar May 12 '25 09:05 KarimElsayad247

I have the same issue as @CAB233 . This is reproducible with Obsidian and other Electron apps in my case.

mufeedali avatar May 15 '25 13:05 mufeedali

KDE Plasma 6.3.5, it works now!

Image

nullptroma avatar Jun 19 '25 13:06 nullptroma

KDE Plasma 6.3.5, it works now!

Image

In my case WezTerm still has problems with rounded corners. I'm kde 6.3.5 and have rebuilt aur/kwin-effect-rounded-corners-git

Image

a15355447898a avatar Jun 20 '25 02:06 a15355447898a

have you tried turning the effect off and on in Desktop Effects?

nullptroma avatar Jun 20 '25 02:06 nullptroma

have you tried turning the effect off and on in Desktop Effects?

It's still not working.

Image

Image

a15355447898a avatar Jun 20 '25 02:06 a15355447898a

I don't know what it was, but I still have the same problem

nullptroma avatar Jun 30 '25 14:06 nullptroma

On my device, I set Kitty to 'hide_window_decorations yes' and I found that the rounded corners work fine when it is opened in any window size with an 8:5 aspect ratio, but when I change the window size or open it in a different ratio, it fails.

Image Image

Invisibox avatar Aug 04 '25 15:08 Invisibox

I have nothing really useful to add, except that to say that I am also facing this issue on Arch and KDE Plasma 6.4.4 on Wayland. It seems to work fine for most programs, like those using xwayland or wine, while things such as System Settings have sharp corners. Though with 6.5 around the corner, the solution I suppose will be built in to Plasma itself soon enough.

glitchyantigravity avatar Sep 07 '25 23:09 glitchyantigravity

I’ve investigated the problem with rounded corners not working at fractional scaling (e.g., 175%) and found that the issue is directly related to native window shadows. When “Use Native Decoration Shadows” is enabled, the effect’s corner mask does not apply to the shadow region, so the corners appear unrounded at non-integer scales. With custom shadows enabled, everything works as expected.

For now, the only reliable workaround is to use custom shadows.

nullptroma avatar Sep 08 '25 21:09 nullptroma

I’ve investigated the problem with rounded corners not working at fractional scaling (e.g., 175%) and found that the issue is directly related to native window shadows. When “Use Native Decoration Shadows” is enabled, the effect’s corner mask does not apply to the shadow region, so the corners appear unrounded at non-integer scales. With custom shadows enabled, everything works as expected.

For now, the only reliable workaround is to use custom shadows.

That worked for me! Thank you!

a15355447898a avatar Sep 09 '25 08:09 a15355447898a

@nullptroma Thanks for checking this out. I have optimized the roundness of native shadows for the Breeze decoration but I suspected that others might have issues.

matinlotfali avatar Sep 09 '25 16:09 matinlotfali