BringSelectedWindowToFront should bring the window to front instead of only focusing it

The API is misused, please refer to the bug for detail explanation.

BUG=https://bugs.chromium.org/p/webrtc/issues/detail?id=6565

Review-Url: https://codereview.webrtc.org/2426423005
Cr-Commit-Position: refs/heads/master@{#14715}
This commit is contained in:
zijiehe 2016-10-20 16:44:17 -07:00 committed by Commit bot
parent 97abf244ca
commit bdb8df895a

View File

@ -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) {