Bug 480473 - Visual artifacts in Titlebar context menu
Summary: Visual artifacts in Titlebar context menu
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: decorations (show other bugs)
Version: 5.27.10
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-29 08:54 UTC by Andrea Ippolito
Modified: 2024-06-03 21:50 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
visual artifact on title bar context menu (208.61 KB, image/png)
2024-02-27 14:08 UTC, Andrea Ippolito
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrea Ippolito 2024-01-29 08:54:51 UTC
SUMMARY
First of all, I'm not sure about the component where I'm reporting this, so please accept my apology if it's the wrong one.

I have a visual glitch whenever I right click a window title bar to show the context menu, because it looks like this:

https://imgur.com/a/xyPYLTB

Not only is the font a bit weird/blurry (compare it to the "Run" menu in the background, but also the line having focus is not properly surrounded (the rectangle is missing the upper line).

I'm using Wayland, an external monitor (scaled at 100%), and the laptop monitor scaled at 125%.
But I could reproduce even after switching to laptop-only via META+P, with laptop still at 125%.
And finally also bringing back the laptop to 100% scaling still showed the problem.
(I didn't logoff/reboot after changing scale factor, tho. Not sure it's necessary).

The problem was visible in all those cases.
Flatpak apps or native apps doesn't matter, I could reproduce also on Dolphin.
Haven't tested with an X11 session.

Operating System: openSUSE Tumbleweed 20240126
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.114.0
Qt Version: 5.15.12
Kernel Version: 6.7.1-2-default (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7840U w/ Radeon 780M Graphics
Memory: 30,5 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: Framework
Product Name: Laptop 13 (AMD Ryzen 7040Series)
System Version: A7


Font config as per screenshot:
https://imgur.com/a/44zBCfZ

https://fonts.google.com/specimen/Red+Hat+Display?query=red+hat
https://fonts.google.com/specimen/Red+Hat+Mono?query=red+hat
Comment 1 Andrea Ippolito 2024-01-29 08:57:20 UTC
Just in case it plays a role, I also customize my KDE Plasma with middle click on titlebar to minimize the window

https://imgur.com/a/U32bxmT
Comment 2 Nate Graham 2024-02-06 23:48:57 UTC
I can't reproduce this in Plasma 6. So for now I'll mark this as fixed, but do feel free to re-open it if you find that the issue is still present after you upgrade to Plasma 6. Thanks a lot!
Comment 3 Andrea Ippolito 2024-02-27 14:07:25 UTC
Hello Nate,

I'm reopening this because today I took some time to boot a neon-testing live medium and reproduced easily.

The key aspect seems to be: dual screen setup + fractional scaling.

System info:

Operating System: KDE neon Testing Edition
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.5.0-21-generic (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7840U w/ Radeon 780M Graphics
Memory: 30.5 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: Framework
Product Name: Laptop 13 (AMD Ryzen 7040Series)
System Version: A7


Issue appears on external monitor (the one on the left) when it is scaled to 100% BUT the integrated one (on the right side) is scaled to 125% (see attachment).

I could also reproduce with other combinations of scaling.

But interestingly, once I set 100% scaling on both displays, the issue is not reproducible.

It's as if the 125% scaling of the internal monitor affected the external one. Also curiously enough, with a 100% scaling for the external + 125% for the internal, the visual artifact is visible on a context menu drawn on the external monitor, but if I move the window to the internal display, the artifact is not visible.

I am not sure if this is KDE/frameworks related, or has something to do with my GPU/drivers (although I have a quite bland integrated AMD GPU with open source drivers...)

Thanks and looking forward to the release! <3
Comment 4 Andrea Ippolito 2024-02-27 14:08:21 UTC
Created attachment 166135 [details]
visual artifact on title bar context menu
Comment 5 Andrea Ippolito 2024-02-27 14:09:35 UTC
I would like to update the version, but the 6.0.0 tag is missing and I'm not sure that neon-testing == master branch, so I'll let that be
Comment 6 Nate Graham 2024-02-29 17:23:04 UTC
Weird, I cannot reproduce the issue with two screens, each of them using fractional scaling (4k@225% + 1080p@110%).
Comment 7 Andrea Ippolito 2024-02-29 17:34:11 UTC
(In reply to Nate Graham from comment #6)
> Weird, I cannot reproduce the issue with two screens, each of them using
> fractional scaling (4k@225% + 1080p@110%).

I suspect (In reply to Nate Graham from comment #6)
> Weird, I cannot reproduce the issue with two screens, each of them using
> fractional scaling (4k@225% + 1080p@110%).

Thanks for the feedback, Nate.

I suspect it might be related to my specific GPU, then :(

I'm using an AMD 7840U chip which is rather new...never ending graphical issues on Linux with this piece of HW :(

If someone in the KDE dev team happens to have similar hardware, it would be interesting to try and confirm this hypothesis, I will try to ask the same to the Framework laptop community, which is quite Linux-oriented; 1 in 2 Linux users there must be using KDE :D.
Comment 8 Andrea Ippolito 2024-06-03 21:50:06 UTC
While I can still reproduce this, I got used to it and I'm clearly the only one experiencing this.

I will go ahead and just close this as unreproducible - if YOU are reading this someday in the future and have this same issue, please reopen this with some info about your hardware and screen setup - thanks!