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

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

Issue 2997493002: desktopCapture: minimized window shouldn't be treated as on-top on Win10 (Closed)
Patch Set: Created 3 years, 4 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/cropping_window_capturer_win.cc
diff --git a/webrtc/modules/desktop_capture/cropping_window_capturer_win.cc b/webrtc/modules/desktop_capture/cropping_window_capturer_win.cc
index b7c71c835c265c9bcd705a95496e941c996f80ff..5e831eb5dfb6a672717330c45fb9d1450d08dd79 100644
--- a/webrtc/modules/desktop_capture/cropping_window_capturer_win.cc
+++ b/webrtc/modules/desktop_capture/cropping_window_capturer_win.cc
@@ -42,11 +42,6 @@ BOOL CALLBACK TopWindowVerifier(HWND hwnd, LPARAM param) {
TopWindowVerifierContext* context =
reinterpret_cast<TopWindowVerifierContext*>(param);
- if (hwnd == context->selected_window) {
- context->is_top_window = true;
- return FALSE;
- }
-
// Ignore the excluded window.
if (hwnd == context->excluded_window) {
return TRUE;
@@ -57,6 +52,10 @@ BOOL CALLBACK TopWindowVerifier(HWND hwnd, LPARAM param) {
return TRUE;
}
+ if (hwnd == context->selected_window) {
Hzj_jie 2017/08/07 19:28:29 After this change, unnecessary checks for other wi
+ context->is_top_window = true;
+ return FALSE;
+ }
// Ignore descendant/owned windows since we want to capture them.
// This check does not work for tooltips and context menus. Drop down menus
// and popup windows are fine.
« 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