Created attachment 169668 [details] showcasing bug. Only terminal window shared, panel & firefox can be discerned SUMMARY Sharing a window, which isn't currently rendering, results in garbled cast video, while possibly sharing parts of other windows. Marking as grave as this can create privacy issues (if the part of the random data contains parts of another window) STEPS TO REPRODUCE 1. Minimize a maximized window, wait a while (unsure how long. Maybe screensaver required to activate...) 2. Share only window using firefox (to https://onlinescreenshare.com ) 3. Pick a window to share. Getting the "Share" button to enable is sometimes a bit finicky, but randomly selecting/deselecting windows usually does the trick. Move cursor over last location of window. ( related bug : https://bugs.kde.org/show_bug.cgi?id=486081 ) OBSERVED RESULT Garbled casted result. Possibly containing fragments of other windows. Raising the shared window fixes it. EXPECTED RESULT Unsure. Either don't allow sharing such a window, or enable the window, possibly raising it? SOFTWARE/OS VERSIONS Linux/KDE Plasma: linux-6.6.30, Gentoo KDE Plasma Version: 6.0.4 KDE Frameworks Version: 6.0.0 Qt Version: 6.7.0 ADDITIONAL INFORMATION I have 2 screens. Firefox with cast on left screen, last location of minimized window on right screen: Moving cursor anywhere on right screen causes cast stream corruption. I have reproduced it a few times, twice using the process described, but I don't know how to force the exact conditions which allow reproducing.
I cannot reproduce it
If you're able to reproduce it, can you attach kwin logs to the bug report? `journalctl --follow --user-unit plasma-kwin_wayland > log.txt`
sorry, wrong command journalctl --boot --user-unit plasma-kwin_wayland > log.txt
Created attachment 170640 [details] log Sharing started around 18:02 . tbh I don't see anything special at that time. I'll try making a video of it. It happens every time I try. (6.1 beta, currently upgrading to release)
Also, if you're trying to reproduce with the fix for https://bugs.kde.org/show_bug.cgi?id=487294 in place, I don't think you'll be able to. It should work around it. Not sure if setting this one as fixed by the same logic is correct.
Created attachment 170650 [details] screencast Note the cursor moving over the area where the minimized konsole window appears when raised. just tried applying https://invent.kde.org/plasma/kwin/-/merge_requests/5945/ , and it indeed does prevent it from happening.
Okay, I can reproduce it now. Weird.
I believe it's either a webrtc or a firefox bug. It looks like it doesn't handle well pw_buffer's that contain only cursor metadata. Things work fine in obs and chromium. Can you report this issue to firefox developers please?
reported here. https://bugzilla.mozilla.org/show_bug.cgi?id=1904615