Windows: Use WS_EX_NOACTIVATE to control initial window activation (issue #1856)

This commit is contained in:
Marshall Greenblatt
2019-02-07 16:36:31 -05:00
parent 84a5749f9f
commit b8eaec0db2
10 changed files with 107 additions and 7 deletions

View File

@@ -41,6 +41,9 @@ void BrowserWindowOsrWin::GetPopupConfig(CefWindowHandle temp_handle,
windowInfo.external_begin_frame_enabled =
osr_window_->settings().external_begin_frame_enabled;
// Don't activate the hidden browser on creation.
windowInfo.ex_style |= WS_EX_NOACTIVATE;
client = client_handler_;
}