From 9601e808c93cc9a6f103a1588d0a5b8b1e4170aa Mon Sep 17 00:00:00 2001 From: Dan Minor Date: Wed, 5 Sep 2018 13:55:27 -0400 Subject: [PATCH] Bug 1487419 - Save current desktop configuration in ScreenCapturerMac::Init; r=pehrsons Summary: The fix for Bug 1409018 accidentally removed saving the current desktop configuration during Init() which causes it to not be set when a different screen is selected, meaning that regardless of the choice made, only the first screen is captured. Reviewers: pehrsons Tags: #secure-revision Bug #: 1487419 Differential Revision: https://phabricator.services.mozilla.com/D5062 --HG-- extra : rebase_source : bb4f9a0f4e06dfbd9730b7af4a0748749d72c3da --- .../trunk/webrtc/modules/desktop_capture/screen_capturer_mac.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/media/webrtc/trunk/webrtc/modules/desktop_capture/screen_capturer_mac.mm b/media/webrtc/trunk/webrtc/modules/desktop_capture/screen_capturer_mac.mm index a36c65e66e1c..8bfd85619fe4 100644 --- a/media/webrtc/trunk/webrtc/modules/desktop_capture/screen_capturer_mac.mm +++ b/media/webrtc/trunk/webrtc/modules/desktop_capture/screen_capturer_mac.mm @@ -424,6 +424,7 @@ bool ScreenCapturerMac::Init() { ScreenConfigurationChanged(); */ desktop_config_monitor_->Lock(); + desktop_config_ = desktop_config_monitor_->desktop_configuration(); update_screen_configuration_ = true; desktop_config_monitor_->Unlock(); return true;