fix: add patch to fix desktopCapturer.getSources not returning electron windows on Windows (#45000)
* fix: add patch to fix desktopCapturer.getSources not returning electron window on Windows * add chromium link * Update patches/chromium/fix_desktop_capturer_show_own_window.patch Co-authored-by: Keeley Hammond <vertedinde@electronjs.org> * fix on electron side * set flag to true * wrong capturer --------- Co-authored-by: Keeley Hammond <vertedinde@electronjs.org>
This commit is contained in:
parent
ff13bcd08d
commit
caf24ef417
1 changed files with 2 additions and 2 deletions
|
@ -286,7 +286,7 @@ void DesktopCapturer::StartHandling(bool capture_window,
|
||||||
capture_screen_ = false;
|
capture_screen_ = false;
|
||||||
capture_window_ = capture_window;
|
capture_window_ = capture_window;
|
||||||
window_capturer_ = std::make_unique<NativeDesktopMediaList>(
|
window_capturer_ = std::make_unique<NativeDesktopMediaList>(
|
||||||
DesktopMediaList::Type::kWindow, std::move(capturer));
|
DesktopMediaList::Type::kWindow, std::move(capturer), true, true);
|
||||||
window_capturer_->SetThumbnailSize(thumbnail_size);
|
window_capturer_->SetThumbnailSize(thumbnail_size);
|
||||||
|
|
||||||
OnceCallback update_callback = base::BindOnce(
|
OnceCallback update_callback = base::BindOnce(
|
||||||
|
@ -322,7 +322,7 @@ void DesktopCapturer::StartHandling(bool capture_window,
|
||||||
auto capturer = MakeWindowCapturer();
|
auto capturer = MakeWindowCapturer();
|
||||||
if (capturer) {
|
if (capturer) {
|
||||||
window_capturer_ = std::make_unique<NativeDesktopMediaList>(
|
window_capturer_ = std::make_unique<NativeDesktopMediaList>(
|
||||||
DesktopMediaList::Type::kWindow, std::move(capturer));
|
DesktopMediaList::Type::kWindow, std::move(capturer), true, true);
|
||||||
window_capturer_->SetThumbnailSize(thumbnail_size);
|
window_capturer_->SetThumbnailSize(thumbnail_size);
|
||||||
#if BUILDFLAG(IS_MAC)
|
#if BUILDFLAG(IS_MAC)
|
||||||
window_capturer_->skip_next_refresh_ =
|
window_capturer_->skip_next_refresh_ =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue