Access window through native view
This commit is contained in:
parent
88979a9844
commit
dd5ee28b2f
2 changed files with 3 additions and 5 deletions
|
@ -1175,7 +1175,7 @@ bool WebContents::IsFocused() const {
|
|||
if (!view) return false;
|
||||
|
||||
if (GetType() != BACKGROUND_PAGE) {
|
||||
auto window = web_contents()->GetTopLevelNativeWindow();
|
||||
auto window = web_contents()->GetNativeView()->GetTopLevelWindow();
|
||||
if (window && !window->IsVisible())
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue