diff --git a/modules/desktop_capture/window_capturer_mac.mm b/modules/desktop_capture/window_capturer_mac.mm index f99b4a74d1..56c94baada 100644 --- a/modules/desktop_capture/window_capturer_mac.mm +++ b/modules/desktop_capture/window_capturer_mac.mm @@ -127,8 +127,7 @@ bool WindowCapturerMac::FocusOnSelectedSource() { // TODO(jiayl): this will bring the process main window to the front. We // should find a way to bring only the window to the front. bool result = - [[NSRunningApplication runningApplicationWithProcessIdentifier: pid] - activateWithOptions: NSApplicationActivateIgnoringOtherApps]; + [[NSRunningApplication runningApplicationWithProcessIdentifier:pid] activateWithOptions:0]; CFRelease(window_id_array); CFRelease(window_array);