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

This commit is contained in:
Shelley Vohr
2020-09-17 17:40:07 -06:00
committed by GitHub
parent 2cfa41e6e0
commit a65f7f7d42
2 changed files with 17 additions and 1 deletions

View File

@@ -340,11 +340,11 @@ void BrowserWindow::OnWindowResize() {
}
void BrowserWindow::OnWindowLeaveFullScreen() {
BaseWindow::OnWindowLeaveFullScreen();
#if defined(OS_MAC)
if (web_contents()->IsFullscreen())
web_contents()->ExitFullscreen(true);
#endif
BaseWindow::OnWindowLeaveFullScreen();
}
void BrowserWindow::Focus() {