Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Unified Diff: webrtc/modules/desktop_capture/window_capturer_win.cc

Issue 2426423005: BringSelectedWindowToFront should bring the window to front instead of only focusing it (Closed)
Patch Set: != FALSE instead of == TRUE Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698