Bug 450118

Summary: Regression: KWin 5.24.0 renders window borders with gradient in wrong direction
Product: [Plasma] kwin Reporter: Matt Whitlock <kde>
Component: decorationsAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.24.0   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: KCalc on KWin 5.23.5
KCalc on KWin 5.24.0

Description Matt Whitlock 2022-02-13 02:03:21 UTC
Created attachment 146652 [details]
KCalc on KWin 5.23.5

SUMMARY

See the attached comparison. The only system changes between the two screenshots were upgrading KWaylandServer and KWin from 5.23.5 to 5.24.0. (KWin 5.23.5 won't build against KWaylandServer 5.24.0.)

The left and right window borders appear to have their gradients painted left-to-right rather than top-to-bottom.

STEPS TO REPRODUCE
1. Install KWin 5.24.0.
2. Choose Oxygen as your window decoration style.

OBSERVED RESULT
Left and right window borders have gradients painted left-to-right with brighter edge on the left.

EXPECTED RESULT
Left and right window borders have gradients painted top-to-bottom with brighter edge at the top.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.24.0
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Comment 1 Matt Whitlock 2022-02-13 02:03:48 UTC
Created attachment 146653 [details]
KCalc on KWin 5.24.0
Comment 2 Matt Whitlock 2022-02-14 03:06:12 UTC
Git bisection reveals 3b4d5583713e4dbba046cc79f02c6c8c356ed43b as the culprit.

https://invent.kde.org/plasma/kwin/-/commit/3b4d5583713e4dbba046cc79f02c6c8c356ed43b
Comment 3 Matt Whitlock 2022-02-14 03:15:39 UTC
Confirming that 86da8e9e369523939a3e7a1ad2eade4ee2457105 fixes the problem for me.

https://invent.kde.org/plasma/kwin/-/commit/86da8e9e369523939a3e7a1ad2eade4ee2457105