Bug 446220

Summary: Image corrupted/broken when screen sharing an X window on Firefox on Wayland
Product: [Plasma] kwin Reporter: nf.pereira
Component: platform-wayland-nestedAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.23.3   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Picture corruption

Description nf.pereira 2021-11-29 01:14:25 UTC
Created attachment 144054 [details]
Picture corruption

SUMMARY

On Firefox running on Wayland, when I screenshare any XWayland window, it looks all corrupted like the attached picture:

STEPS TO REPRODUCE
1. Open a site that uses WebRTC like https://mozilla.github.io/webrtc-landing/gum_test.html
2. Press "Screen capture"
3. Select an XWayland window.
4. Observe the corrupted picture or observe Firefox crashing.

OBSERVED RESULT
The picture being shared is corrupted, or Firefox crashes.

EXPECTED RESULT
The picture should not be corrupted.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro
KDE Plasma Version: 5.23.3
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2
Firefox: 94.0.2
Comment 1 nf.pereira 2021-12-02 16:12:17 UTC
I've just now noticed this is also reproducible on OBS Studio when capturing an XWayland window.
Comment 2 nf.pereira 2022-10-13 01:59:35 UTC
Something seems to have fixed this, as I can no longer reproduce the problem. I'll close it.