Bug 496798

Summary: New option for Pipewire/Wayland window sharing to include sub-windows
Product: [Plasma] kwin Reporter: Sergio <sergio.callegari>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: wishlist CC: kde
Priority: NOR    
Version: 6.1.5   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Sergio 2024-11-28 19:53:38 UTC
SUMMARY

When sharing a window using pipewire window sharing in a plasma wayland session, sub windows cannot be shared

STEPS TO REPRODUCE

1. Open an application  that creates a window and that under certain circumstances can create other windows (dialogs, etc.).
    - For instance I see the issue with LTSPICE, that is an application running under wine that I often use for education with window sharing to OBS. This application opens dialogs to add components to a schematic, to show measurements made on waveforms using cursors and so on.  
2. Open an application supporting screen sharing, for instance, OBS Studio
3. Ask the latter application to "capture" some window.

OBSERVED RESULT

You will notice that capturing some window content normally works. However, when the application opens another window, this is not shared. Furthermore, if you try to activate window sharing when this other window is open, this window is not proposed for window sharing. The only way to share it is to share the entire screen.

EXPECTED RESULT

There should be an "application sharing", supporting the sharing of all the windows corresponding to an application and in window sharing it should be possible to select any window, including those corresponding to dialogs.

SOFTWARE/OS VERSIONS

Operating System: Manjaro Linux 
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.2
Kernel Version: 6.10.13-3-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 9 6900HS with Radeon Graphics
Memory: 30.6 GiB of RAM
Graphics Processor: AMD Radeon 680M
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: ROG Zephyrus G14 GA402RK_GA402RK
System Version: 1.0

ADDITIONAL INFORMATION

I have initially reported this issue to the pipewire developers, but they indicated that the problem is in the window manager.
Comment 1 David Edmundson 2024-11-29 07:54:22 UTC
>The only way to share it is to share the entire screen.

There is also region selection.