Conversation
When the host starts before the virtual monitor is attached, pickSource() finds nothing matching settings.displayId and falls back to the primary screen. The panel then re-sends that selection as capture starts, select-source saved it, and from then on settings.displayId pointed at the primary: every later run captured the main screen and the iPad showed a shrunken copy of it instead of the second monitor. Found on this machine — ffmpeg was running on ddagrab=output_idx=0 (3840x2160) with the 1024x768 virtual display sitting unused at output 1. Only an actual click in the monitor picker persists now. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes / Что меняется
select-sourceсохраняетdisplayIdтолько тогда, когда монитор выбран кликом в панели.Why / Зачем
Если хост стартует раньше, чем подцепился виртуальный монитор,
pickSource()не находит ничегопод
settings.displayIdи откатывается на основной экран. Дальше панель при старте захватапереотправляет текущий выбор,
select-sourceего сохранял — иsettings.displayIdнавсегдауказывал на основной монитор. Каждый следующий запуск захватывал главный экран, и на iPad
приезжала уменьшенная копия рабочего стола вместо второго монитора.
Поймано сегодня на этой машине:
ffmpegработал наddagrab=output_idx=0(3840×2160), авиртуальный дисплей 1024×768 стоял незанятым на
output_idx=1.How it was tested / Как проверено
npm testpassesdisplayIdна виртуальный монитор хостподнялся на
capture output 1, 60 fps, задержка 5 мсChecklist
🤖 Generated with Claude Code