From caf24ef417365d0a65c10b1285520de7fb051483 Mon Sep 17 00:00:00 2001 From: George Xu <33054982+georgexu99@users.noreply.github.com> Date: Tue, 17 Dec 2024 15:20:44 -0800 Subject: [PATCH] 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 * fix on electron side * set flag to true * wrong capturer --------- Co-authored-by: Keeley Hammond --- shell/browser/api/electron_api_desktop_capturer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/browser/api/electron_api_desktop_capturer.cc b/shell/browser/api/electron_api_desktop_capturer.cc index 74e71b0bbb786..b7d7177bf47a9 100644 --- a/shell/browser/api/electron_api_desktop_capturer.cc +++ b/shell/browser/api/electron_api_desktop_capturer.cc @@ -286,7 +286,7 @@ void DesktopCapturer::StartHandling(bool capture_window, capture_screen_ = false; capture_window_ = capture_window; window_capturer_ = std::make_unique( - DesktopMediaList::Type::kWindow, std::move(capturer)); + DesktopMediaList::Type::kWindow, std::move(capturer), true, true); window_capturer_->SetThumbnailSize(thumbnail_size); OnceCallback update_callback = base::BindOnce( @@ -322,7 +322,7 @@ void DesktopCapturer::StartHandling(bool capture_window, auto capturer = MakeWindowCapturer(); if (capturer) { window_capturer_ = std::make_unique( - DesktopMediaList::Type::kWindow, std::move(capturer)); + DesktopMediaList::Type::kWindow, std::move(capturer), true, true); window_capturer_->SetThumbnailSize(thumbnail_size); #if BUILDFLAG(IS_MAC) window_capturer_->skip_next_refresh_ =