Bug 496003 - Double prompt to select display when launching screen sharing in XWayland applications
Summary: Double prompt to select display when launching screen sharing in XWayland app...
Status: REPORTED
Alias: None
Product: xdg-desktop-portal-kde
Classification: Plasma
Component: general (show other bugs)
Version: 6.2.3
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-09 11:43 UTC by e.insafutdinov
Modified: 2024-12-08 04:55 UTC (History)
3 users (show)

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


Attachments
Screensharing with Slack (2.06 MB, video/mp4)
2024-11-09 11:43 UTC, e.insafutdinov
Details

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