mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: close window when leave fs crash (#25604)
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user