fix: close window when leave fs crash (#25604)

This commit is contained in:
Shelley Vohr
2020-09-23 15:44:00 -07:00
committed by GitHub
parent a99256da8c
commit 894d41ef5a
2 changed files with 17 additions and 1 deletions

View File

@@ -336,11 +336,11 @@ void BrowserWindow::OnWindowResize() {
}
void BrowserWindow::OnWindowLeaveFullScreen() {
TopLevelWindow::OnWindowLeaveFullScreen();
#if defined(OS_MACOSX)
if (web_contents()->IsFullscreenForCurrentTab())
web_contents()->ExitFullscreen(true);
#endif
TopLevelWindow::OnWindowLeaveFullScreen();
}
void BrowserWindow::Focus() {