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:
parent
97abf244ca
commit
bdb8df895a
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user