Screenshare dialog doesn't update as windows are opened and closed
When the screenshare dialog is shown and the "Single window" tab selected, a list of open windows is created. This list is not updated when windows open and close (unless you switch to Entire screen and back again). I think the list should be kept in sync with open windows, just as the list of screens is kept up to date.
If you wish to share a window you have erroneously not yet opened, you need to cancel the dialog and reopen it once you have opened the window (or know the secret handshake of changing tabs).
If you close a window after the dialog is shown, and attempt to share it, no error is shown, but the following appears in the journal:
Feb 21 14:49:02 camille xdg-desktop-por[2237]: Failed to start session: GDBus.Error:org.freedesktop.DBus.Error.Failed: Window not found
Feb 21 14:49:02 camille org.chromium.Chromium.desktop[2472]: [2:2:0221/144902.287271:ERROR:base_capturer_pipewire.cc(994)] Failed to start the screen cast session.