Skip to content

Commit

Permalink
fix: add patch to fix desktopCapturer.getSources not returning electr…
Browse files Browse the repository at this point in the history
…on windows on Windows (electron#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 <[email protected]>

* fix on electron side

* set flag to true

* wrong capturer

---------

Co-authored-by: Keeley Hammond <[email protected]>
  • Loading branch information
georgexu99 and VerteDinde authored Dec 17, 2024
1 parent ff13bcd commit caf24ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shell/browser/api/electron_api_desktop_capturer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ void DesktopCapturer::StartHandling(bool capture_window,
capture_screen_ = false;
capture_window_ = capture_window;
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);

OnceCallback update_callback = base::BindOnce(
Expand Down Expand Up @@ -322,7 +322,7 @@ void DesktopCapturer::StartHandling(bool capture_window,
auto capturer = MakeWindowCapturer();
if (capturer) {
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);
#if BUILDFLAG(IS_MAC)
window_capturer_->skip_next_refresh_ =
Expand Down

0 comments on commit caf24ef

Please sign in to comment.