fix: close window when leave fs crash (#25468)
This commit is contained in:
parent
2cfa41e6e0
commit
a65f7f7d42
2 changed files with 17 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue