Skip to content

fix: wait for user selection on delegated lists in desktopCapturer#51784

Draft
trop[bot] wants to merge 1 commit into
42-x-yfrom
trop/42-x-y-bp-fix-wait-for-user-selection-on-delegated-lists-in-desktopcapturer-1779901484982
Draft

fix: wait for user selection on delegated lists in desktopCapturer#51784
trop[bot] wants to merge 1 commit into
42-x-yfrom
trop/42-x-y-bp-fix-wait-for-user-selection-on-delegated-lists-in-desktopcapturer-1779901484982

Conversation

@trop

@trop trop Bot commented May 27, 2026

Copy link
Copy Markdown
Contributor

Backport of #51674

See that PR for details.

Notes: Fixed desktopCapturer thumbnail generation and premature portal timeout on Linux with Wayland.

Delegated source lists signal user selection using
`OnDelegatedSourceListSelection`, not `OnSourceAdded`. `BaseCapturerPipeWire`
adds a placeholder source to preserve the interface shape, but it doesn't
mean anything. Ignore `OnSourceAdded` and don't timeout after 3 seconds in case
of delegated lists.

Assisted-By: Claude Opus 4.7, Claude Code

Co-authored-by: Athul Iddya <athul@iddya.com>
@trop trop Bot added 42-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels May 27, 2026
ckerr
ckerr previously approved these changes May 27, 2026
@ckerr ckerr marked this pull request as draft May 28, 2026 19:32
@ckerr

ckerr commented May 28, 2026

Copy link
Copy Markdown
Member

Converting to draft until I and/or @nikwen can TAL.

This trop went green in 43-x-y but is red in 42-x-y. It is a backport of PR #51674, which aims to fix bug #51673, which was caused by PR #50960 (which was backported to 42-x-y) + PR #51128 (which was not). So at first read, I think the Right Thing is to backport 51128 to 42-x-y and then rebase this PR right afterwards, but this needs confirmation.

CC stakeholder @nikwen

@ckerr ckerr dismissed their stale review May 28, 2026 19:42

stale

@ckerr ckerr self-requested a review May 28, 2026 19:43
@nikwen

nikwen commented May 28, 2026

Copy link
Copy Markdown
Member

Thanks for the mention!

I'm not a stakeholder on this backport. I needed #51128 only to unblock another PR, which has since been merged. :)

@aiddya

aiddya commented May 31, 2026

Copy link
Copy Markdown
Contributor

@ckerr Both of the dependent PRs were backported to 42-x-y in #51506. I see that the tests failed due to a test dependency or ordering issue, not anything related to this PR:

Fatal server error:
(EE) Server is already active for display 99
	If this server is no longer running, remove /tmp/.X99-lock
	and start again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

42-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants