Bug 450118 - Regression: KWin 5.24.0 renders window borders with gradient in wrong direction
Summary: Regression: KWin 5.24.0 renders window borders with gradient in wrong direction
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: decorations (show other bugs)
Version: 5.24.0
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-13 02:03 UTC by Matt Whitlock
Modified: 2022-02-14 03:15 UTC (History)
0 users

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


Attachments
KCalc on KWin 5.23.5 (46.13 KB, image/png)
2022-02-13 02:03 UTC, Matt Whitlock
Details
KCalc on KWin 5.24.0 (45.21 KB, image/png)
2022-02-13 02:03 UTC, Matt Whitlock
Details

Note You need to log in before you can comment on or make changes to this bug.
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