Index: webrtc/modules/desktop_capture/window_capturer_win.cc |
diff --git a/webrtc/modules/desktop_capture/window_capturer_win.cc b/webrtc/modules/desktop_capture/window_capturer_win.cc |
index 61de06cc93b6046792735b8415a7ee7fdbaa9515..91ccc38f54548abb51315874f81c0582ff1fe110 100644 |
--- a/webrtc/modules/desktop_capture/window_capturer_win.cc |
+++ b/webrtc/modules/desktop_capture/window_capturer_win.cc |
@@ -150,7 +150,8 @@ bool WindowCapturerWin::BringSelectedWindowToFront() { |
if (!IsWindow(window_) || !IsWindowVisible(window_) || IsIconic(window_)) |
return false; |
- return SetForegroundWindow(window_) != 0; |
+ return BringWindowToTop(window_) != FALSE && |
+ SetForegroundWindow(window_) != FALSE; |
} |
void WindowCapturerWin::Start(Callback* callback) { |