diff --git a/third_party/libwebrtc/modules/desktop_capture/mac/screen_capturer_sck.mm b/third_party/libwebrtc/modules/desktop_capture/mac/screen_capturer_sck.mm index c8f5411bcdc4..7825d85a6a92 100644 --- a/third_party/libwebrtc/modules/desktop_capture/mac/screen_capturer_sck.mm +++ b/third_party/libwebrtc/modules/desktop_capture/mac/screen_capturer_sck.mm @@ -171,7 +171,6 @@ void ScreenCapturerSck::CaptureFrame() { MutexLock lock(&latest_frame_lock_); if (latest_frame_) { frame = latest_frame_->Share(); - frame->set_dpi(DesktopVector(latest_frame_dpi_, latest_frame_dpi_)); if (frame_is_dirty_) { frame->mutable_updated_region()->AddRect( DesktopRect::MakeSize(frame->size())); @@ -357,6 +356,9 @@ void ScreenCapturerSck::OnNewIOSurface(IOSurfaceRef io_surface, if (dirty) { MutexLock lock(&latest_frame_lock_); + frame->set_dpi(DesktopVector(latest_frame_dpi_, latest_frame_dpi_)); + frame->set_may_contain_cursor(capture_options_.prefer_cursor_embedded()); + frame_is_dirty_ = true; std::swap(latest_frame_, frame); } diff --git a/third_party/libwebrtc/moz-patch-stack/d2534b3914.no-op-cherry-pick-msg b/third_party/libwebrtc/moz-patch-stack/d2534b3914.no-op-cherry-pick-msg new file mode 100644 index 000000000000..1a10c34bc713 --- /dev/null +++ b/third_party/libwebrtc/moz-patch-stack/d2534b3914.no-op-cherry-pick-msg @@ -0,0 +1 @@ +We cherry-picked this in bug 1966238