Windows quirks with Wayland KDE Plasma?

I’ve been observing strange window behavior with some apps. I’m running Wayland on KDE Plasma 6.3.5 with the NVIDIA 570 driver and I see issues pretty regularly with Brave and occasionally other apps. I was experiencing none of these thing running X11 on Cinnamon/LinuxMint using the same NVIDIA driver.

With Brave, I consistently experience an issue after going to full screen and then coming back. The borders are gone and positioning of the mouse cursor is offset from where the click of the mouse actually occurs. Hitting F11 to go back to full-screen and then immediately hit F11 again causes the window to appear and behave correctly.

Other apps have been less consistent but I occasionally see windows missing pieces like borders, portions of the window sometimes missing, etc.

I found the article KDE + Nvidia vs Cinnamon + Nvidia](KDE + Nvidia vs Cinnamon + Nvidia) and it describes something very similar to what I’m experiencing. That article is dated Jul 2022 so, are others still experiencing issues like this? And, do they appear to be particularly present with NVIDIA drivers?

Have you tried logging into the X11 session on KDE to see if they are Wayland related or not?

I switched to X11 just after posting that to test it and see if there is a difference. From that Jul 2022 post I found, I was curious what others with similar setups were experiencing.

UPDATE: Now running X11, with Brave, I’m not seeing the same issue but a different issue. I no longer lose the borders but going to full-screen and back the window stutters – it pauses, the border kind of goes semi-transparent, then the window switches size. There is a definite delay; the switch is not immediate. So, still not desired behavior.

How did you install brave?

Via yay -S brave-bin

This probably isn’t it but I have seen some strange behaviour when installing a theme that appeared to be very buggy and in this case maybe some misbehaving windows decorations, just a shot in the dark really.

I recently changed the desktop wallpaper and lock screen to “Nuvole”, and the login screen to “Breeze”. But I was experiencing this with Brave before those switches were made.

Well I take it then you are using the default (global) theme for the rest of your system ?

Correct. I didn’t make any theme selections.

I have confirmed to my satisfaction that this issue with Brave and KDE/EOS only happens when running Wayland.

I built a completely new install, did an update and installed Brave using the command curl -fsS https://dl.brave.com/install.sh | sh from their site. (On arch, the script does pacman -Sy --needed --noconfirm brave-browser to install it.) Nothing else was added to the system.

I logged in with the DE set to Wayland and I began having the experience I did in the OP. I then logged out, set the DE to X11, and logged back in. In several hours of testing, I never had the border weirdness occur.

Since this has only been observed with Brave under Wayland so it seems like a Wayland issue. But, given no one else has reported this, is anyone really going to care? :grinning_face_with_smiling_eyes:

Made an account here to comment on this, since this is the first post I’ve managed to find that mentions similar issues.

I have been experiencing some of the mentioned issues as well. I have not had any issues with window borders but I have had MANY issues with clicking on windows being janky, primarily with librewolf.

Sometimes when clicking on the librewolf window, it will attempt to focus a window behind it and bring it to the front. Other times, if i had a window focused on my other monitor, clicking on librewolf will focus it for a split second, then focus the other window again. This particular effect will only stop if i click on the original window again and then click on librewolf. I can consistently get the effect of a window behind librewolf getting raised by using vscode. Putting a vscode window behind librewolf, with both windows maximized, if i click on another window and then attempt to click librewolf, 9/10 times it’ll raise the vscode window to the front.

On vanilla arch with plasma 6.3.5 and nvidia-open 575 as my driver. (I have also experimented with the proprietary driver, issue persists.) Wayland appears to be the culprit as using X11 eliminates this issue.

1 Like