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