Bug 451368

Summary: Not possible to share XWayland windows or screens in a WebRTC conference in Chromium on Wayland
Product: [Plasma] kwin Reporter: postix <postix>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: nate, postix
Priority: NOR Keywords: wayland-only
Version First Reported In: 5.24.2   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=451506
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description postix 2022-03-10 16:43:04 UTC
SUMMARY

While selecting any screen or windows works fine for recording in OBS, in Chromium [1] I can only select Wayland windows. Wayland screens can be selected but are black and XWayland windows do not appear at all for selection.

AFAIK it works under Gnome 41 Wayland, that's why I guess it could be a KWin Wayland issue. 
You can try to share you screen e.g. in some Jitsi Meet conference room: https://meet.jit.si/kdebug123

[1] https://wiki.archlinux.org/title/chromium#Native_Wayland_support
$ chromium --ozone-platform-hint=auto

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20220308
KDE Plasma Version: 5.24.2
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2
Kernel Version: 5.16.11-1-default (64-bit)
Graphics Platform: Wayland
Graphics Processor: AMD Radeon RX 580 Series
Chromium Version 99.0.4844.51 (openSUSE Build) stable (64-bit)
Comment 1 postix 2022-03-14 19:23:08 UTC
Using
```
/usr/bin/chromium --enable-features=WebRTCPipeWireCapturer --ozone-platform=wayland
```
I can indeed get a screen / window chooser, where I can see the previews of all screens and XWayland + Wayland windows. 
However, when I tried to share them in Zoom, the other side only received a black screen.