mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: zombie windows when fullscreening and closing (#34391)
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
@@ -248,6 +248,9 @@ using FullScreenTransitionState =
|
||||
|
||||
shell_->NotifyWindowEnterFullScreen();
|
||||
|
||||
if (shell_->HandleDeferredClose())
|
||||
return;
|
||||
|
||||
shell_->HandlePendingFullscreenTransitions();
|
||||
}
|
||||
|
||||
@@ -263,6 +266,9 @@ using FullScreenTransitionState =
|
||||
shell_->SetResizable(is_resizable_);
|
||||
shell_->NotifyWindowLeaveFullScreen();
|
||||
|
||||
if (shell_->HandleDeferredClose())
|
||||
return;
|
||||
|
||||
shell_->HandlePendingFullscreenTransitions();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user