emersion / xdg-desktop-portal-wlr

xdg-desktop-portal backend for wlroots
MIT License
580 stars 54 forks source link

Slurp/chooser get called again after choosing output #233

Open mangkoran opened 1 year ago

mangkoran commented 1 year ago

Tested with https://mozilla.github.io/webrtc-landing/gum_test.html and chrome. So when I click "Screen capture", the "Choose what you want to share dialog" pops up, and chooser, in this case slurp, is called. After I click which output (display I guess? I only use single monitor), I then select my screen in the chrome dialog. However, after selecting my screen and click "Share", the chooser is executed again. To continue, I need to click my output again, otherwise, if I press ESC while the chooser is executed for the "second" time, the screen capture simply turns all black.

I will provide video log asap. Until then, I apologize the lack of video log.

System info:

columbarius commented 1 year ago

This is the result of chromium forcing it's own chooser. The first selection is for the preview and the second one is for the actual stream. This can be avoided by implementing the transient restore option #234.

mangkoran commented 1 year ago

I see. Thank you for the information. So for the time being, this issue should be leave opened until your PR got merged.