Skip to content

Commit

Permalink
fix: close window when leave fs crash
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Sep 23, 2020
1 parent 6c3c9b5 commit 6ebea9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/browser/api/electron_api_browser_window.cc
Original file line number Diff line number Diff line change
Expand Up @@ -308,11 +308,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() {
Expand Down

0 comments on commit 6ebea9a

Please sign in to comment.