• Jan Grulich's avatar
    Improve screen sharing with PipeWire on Linux Wayland session · 870df28b
    Jan Grulich authored
    Current scenario when PipeWire desktop capturer is used:
    Chromium picker dialog is created with screen and window capturer. Each
    capturer makes an xdg-desktop-portal call, showing another picker
    dialog. Once user confirms both pickers on xdg-desktop-portal side, yet
    another picker is shown as a new capturer is created for the web page
    itself.
    
    With this change:
    Chromium picker dialog is created, but only screen capturer will be
    created as with xdg-desktop-portal the picker will handle both screens
    and windows. Also in the chromium picker, the "window" tab creating
    window capturer expects a list of windows and doesn't show previews,
    but we need actually to behave exactly like the "screen" tab and show
    preview of selected window. Then again, yet another picker from
    xdg-desktop-portal is shown as a new capturer is created for the web
    page itself.
    
    Bug: chromium:1157006
    Change-Id: I39eafc72eb46da7868d1114b5c106030c22787a4
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2578840
    Commit-Queue: mark a. foltz <mfoltz@chromium.org>
    Reviewed-by: default avatarmark a. foltz <mfoltz@chromium.org>
    Reviewed-by: default avatarWez <wez@chromium.org>
    Reviewed-by: default avatarGuido Urdaneta <guidou@chromium.org>
    Reviewed-by: default avatarAvi Drissman <avi@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#836814}
    870df28b
desktop_capture.cc 2.39 KB