mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Because we used decrementing negative source ids for fake video id when instantating a native macOS screen share picker, we eventually hit the `DesktopMediaID::kFakeId = -3` in Chromium source code which displayed a test green screen. In this change we reserve our own fake id of `-4` and decrement the window id integer for uniqueness instead. Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Fedor Indutny <238531+indutny@users.noreply.github.com>