mirror of
https://github.com/electron/electron.git
synced 2026-01-26 07:48:08 -05:00
Use correct GetToplevelWindow signature
This commit is contained in:
@@ -1175,7 +1175,7 @@ bool WebContents::IsFocused() const {
|
||||
if (!view) return false;
|
||||
|
||||
if (GetType() != BACKGROUND_PAGE) {
|
||||
auto window = web_contents()->GetNativeView()->GetTopLevelWindow();
|
||||
auto window = web_contents()->GetNativeView()->GetToplevelWindow();
|
||||
if (window && !window->IsVisible())
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user