diff --git a/AUTHORS b/AUTHORS index 6e922401d0..968c896856 100644 --- a/AUTHORS +++ b/AUTHORS @@ -120,6 +120,7 @@ Silviu Caragea Stefan Gula Stephan Hartmann Steve Reid +Tao chen Takaaki Suzuki Tarun Chawla Todd Wong diff --git a/modules/desktop_capture/win/window_capture_utils.cc b/modules/desktop_capture/win/window_capture_utils.cc index ccfef49bc5..13f498f332 100644 --- a/modules/desktop_capture/win/window_capture_utils.cc +++ b/modules/desktop_capture/win/window_capture_utils.cc @@ -183,6 +183,13 @@ bool GetCroppedWindowRect(HWND window, is_maximized) { // Only apply this cropping to windows with a resize border (otherwise, // it'd clip the edges of captured pop-up windows without this border). + RECT rect; + DwmGetWindowAttribute(window, DWMWA_EXTENDED_FRAME_BOUNDS, &rect, + sizeof(RECT)); + // it's means that the window edge is not transparent + if (rect.left == original_rect->left()) { + return true; + } LONG style = GetWindowLong(window, GWL_STYLE); if (style & WS_THICKFRAME || style & DS_MODALFRAME) { int width = GetSystemMetrics(SM_CXSIZEFRAME);