Bug 496003

Summary: Double prompt to select display when launching screen sharing in XWayland applications
Product: [Plasma] xdg-desktop-portal-kde Reporter: e.insafutdinov
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: REPORTED ---    
Severity: normal CC: aleixpol, nate, rocketraman
Priority: NOR    
Version: 6.2.3   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screensharing with Slack

Description e.insafutdinov 2024-11-09 11:43:22 UTC
Created attachment 175673 [details]
Screensharing with Slack

SUMMARY

Plasma has a dialog that allows you to select which screen, rectangular region or window to share in the screen sharing session. The dialog is titled "Screen Sharing". When launching screen sharing session, for example in Slack (but I observe the same behavior in Zoom too), Plasma shows this dialog to select a screen. However upon selection of a suitable option the same dialog is presented to the user again later. After selecting the desired option for the second time the screen sharing begins.

STEPS TO REPRODUCE
1. Launch a screen sharing session in an app like Slack or Zoom.


OBSERVED RESULT
The dialog is presented twice to the user, as can be seen in the attached screenshot.

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: OpenSUSE Tumbleweed
KDE Plasma Version: Plasma 6.2.3
KDE Frameworks Version: 6.7.0
Qt Version: 6.8.0
Graphics Platform: Wayland

ADDITIONAL INFORMATION
This bug has been present since at least version 6.0 and on both OpenSUSE TW and Fedora under wayland. I selected the xwayland category, because I assume Slack is an X application, feel free to correct this if needed.
Comment 1 e.insafutdinov 2024-11-09 11:55:05 UTC
I have now tested screen sharing in Firefox (using Google Meet) and this dialog is triggered only once which is the correct behavior. I run Firefox natively on Wayland, whereas Slack is run through XWayland (according to the simple test with xeyes).
Comment 2 Raman Gupta 2024-12-08 04:55:08 UTC
I have the same problem between two native Wayland windows.

I’ve tried the following combinations and the behavior is the same for both:

Slack (Electron) to Chrome (both running with --ozone-platform=wayland)
Chrome to Chrome

Operating System: Fedora Linux 41
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0
Kernel Version: 6.11.10-300.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 24 × 12th Gen Intel® Core™ i9-12900KS
Memory: 124.8 GiB of RAM
Graphics Processor: AMD Radeon RX 6600 XT
Manufacturer: ASUS