Bug 451368 - Not possible to share XWayland windows or screens in a WebRTC conference in Chromium on Wayland
Summary: Not possible to share XWayland windows or screens in a WebRTC conference in C...
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (other bugs)
Version First Reported In: 5.24.2
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: wayland-only
Depends on:
Blocks:
 
Reported: 2022-03-10 16:43 UTC by postix
Modified: 2022-04-14 11:54 UTC (History)
2 users (show)

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


Attachments

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