Bug 483198

Summary: Fractional scaling causes visual glitch with outline in title edges
Product: [Plasma] Breeze Reporter: Quinten Kock <quinten>
Component: window decorationAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: minor CC: akselmo, kwin-bugs-null, nate, uhhadd
Priority: NOR Keywords: qt6
Version: 6.0.1   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot showing the issue (look closely at the top right window corner)

Description Quinten Kock 2024-03-11 05:44:54 UTC
SUMMARY
While reporting https://bugs.kde.org/show_bug.cgi?id=483197, I noticed another anomaly: the titlebar (window decoration) edge is different from the actual window edge.

I'm guessing this is an issue with KWin or Breeze, but I am unsure.


STEPS TO REPRODUCE
1. Set scaling factor to 150% (other factors might also be broken)
2. Look at top right corner of window

OBSERVED RESULT
Nice continuous edge

EXPECTED RESULT
Edge suddenly changes in thickness

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
Graphics platform: Wayland
Graphics driver: NVIDIA proprietary 535.154.05 (RTX 2070)
Comment 1 Nate Graham 2024-03-11 20:23:42 UTC

*** This bug has been marked as a duplicate of bug 480171 ***
Comment 2 Quinten Kock 2024-03-11 21:29:41 UTC
Created attachment 166986 [details]
Screenshot showing the issue (look closely at the top right window corner)

Is this really a dup? The linked issue seems related to the window getting the wrong size. Here the window has the correct size, but within the window there is an artifact visible.
Comment 3 Nate Graham 2024-03-13 18:24:49 UTC
Ok, not quite the same issue. It's your favorite bug, Akseli! :) 

Hopefully this will be fixed in Plasma 6.1 with a new approach to drawing the outline.
Comment 4 Akseli Lahtinen 2024-03-14 20:52:29 UTC
I am going to scream.

I think this bug can't be fixed with any style workarounds and just needs a change from the KWin guys.
Comment 5 Akseli Lahtinen 2024-12-13 19:46:06 UTC
Thanks to changes in Kwin, this is now finally fixed!