Bug 448294

Summary: Screencasting a window on Wayland doesn't include subwindows
Product: [Plasma] kwin Reporter: Nicolas Fella <nicolas.fella>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: normal    
Priority: NOR    
Version: git master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Nicolas Fella 2022-01-12 01:34:50 UTC
STEPS TO REPRODUCE
1. Open an app, e.g. Kate 
2. Start OBS Studio
3. Add a screencast for Kate
4. Play around in Kate

OBSERVED RESULT
Kate is visible in OBS, but anything that is technically its own window, like menus, tooltips, configuration dialogs is not visible in the screencast

EXPECTED RESULT
Those are part of the screencast


SOFTWARE/OS VERSIONS
KDE Plasma Version: master
KDE Frameworks Version: master
Qt Version: 5.15.kde
Comment 1 Vlad Zahorodnii 2022-02-04 11:59:31 UTC
window screencasting is used not only by obs, but also plasma. such mode would break window thumbnails in the panel and I think adding one more screencast mode in kwin is worth it. on the other hand, kwin could provide some metadata so the app could composite windows by itself.
Comment 2 Vlad Zahorodnii 2022-02-04 11:59:52 UTC
screencast mode in kwin is not worth it*
Comment 3 Vlad Zahorodnii 2022-05-24 08:37:09 UTC
> kwin could provide some metadata so the app could composite windows by itself.

In fact, one can get relevant info using the plasma window management protocol.