Bug 466785

Summary: Wayland: Red and blue channels are swapped for cursor when screencasting in certain applications
Product: [Plasma] kwin Reporter: Naxdy <xnaxdy>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: aleixpol, kde, nate
Priority: NOR    
Version: 5.27.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=466655
Latest Commit: Version Fixed In: 5.27.4

Description Naxdy 2023-03-03 18:52:24 UTC
SUMMARY
NOTE: This is NOT the same bug as https://bugs.kde.org/show_bug.cgi?id=466655 !!

When screencasting in certain applications (WebRTC seems to be affected by this), the cursor colors are R/B swapped, similar (but NOT the same) as https://bugs.kde.org/show_bug.cgi?id=466655


STEPS TO REPRODUCE
0. Log in to Plasma Wayland and make sure to select a colorful cursor theme (colors should be leaning towards either red or blue)
1. Open an affected application (e.g. Firefox, Telegram Desktop, Slack)
2. Begin screencasting in application (make sure cursor is visible)

OBSERVED RESULT
Cursor image has red and blue channels swapped

EXPECTED RESULT
Cursor image does not have red and blue channels swapped

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Gentoo
(available in About System)
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Mesa: 23.0.0

ADDITIONAL INFORMATION
This bug was encountered using an AMD RX 7900 XTX with Mesa 23.0.0. It may be isolated to screencasting on memfd
Comment 1 David Edmundson 2023-03-25 13:10:24 UTC
Should be fixed by: https://invent.kde.org/plasma/kpipewire/-/merge_requests/48