Bug 436376

Summary: Preview of some third-party themes does not look correct
Product: [Applications] systemsettings Reporter: Patrick Silva <bugseforuns>
Component: kcm_kwindecorationAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: isma.af, nate, plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.27.80   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screenshot
WhiteSur x1.25 decoration

Description Patrick Silva 2021-04-29 21:41:03 UTC
Created attachment 138013 [details]
screenshot

STEPS TO REPRODUCE
1. open System Settings > Appearance > Window decorations
2. click on "Get new window decorations..." button
3. search for WhiteSur Aurorae theme and install it
4. close "Get new window decorations" window
5. observe the previews of the WhiteSur window decorations 

OBSERVED RESULT
See the attached screenhot please. Only the first preview looks correct.

EXPECTED RESULT
correct preview for all installed themes

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.21.80
KDE Frameworks Version: 5.82.0
Qt Version: 5.15.2
Graphics Platform: Wayland
Comment 1 Nate Graham 2021-04-30 16:35:23 UTC
Heh yeah.
Comment 2 Ismael Asensio 2022-11-25 18:29:11 UTC
Created attachment 154030 [details]
WhiteSur x1.25 decoration

I suspect the bug is in the decoration itself. 

For me it just fails with the scaled versions (x1.25, x1.5) which I suspect were made to workaround some possible bug (maybe solved?), since the should be correctly scaled by kwin anyway.

And then, if you apply those decorations, they also look wrong on the actual windows. So in this regard, the screenshot is depicting an almost accurate result of the decoration, which results to be buggy.
Comment 3 Ismael Asensio 2023-11-13 19:04:05 UTC
I'm closing this, as it is most certainly a bug in the WhiteSure scaled versions.

From what I've experienced, the decoration is painting the window borders wrong (with excessive margins around) to the actual widows when it is applied, even when the screen scaling is set to 1.25x too. The previews look wrong because they are depicting the actual behavior of the decoration.

Please, feel free to reopen if your experience is different (the decoration behaves well on windows, just not on the previews)