fix: DCHECK minimizing parent window with non-modal child (#38460)

This commit is contained in:
Shelley Vohr
2023-05-31 11:57:44 +02:00
committed by GitHub
parent 13f9e2db40
commit 40e724e5dd
5 changed files with 107 additions and 17 deletions

View File

@@ -239,6 +239,7 @@ using FullScreenTransitionState =
level_ = [window level];
shell_->SetWindowLevel(NSNormalWindowLevel);
shell_->UpdateWindowOriginalFrame();
shell_->DetachChildren();
}
- (void)windowDidMiniaturize:(NSNotification*)notification {
@@ -248,6 +249,7 @@ using FullScreenTransitionState =
- (void)windowDidDeminiaturize:(NSNotification*)notification {
[super windowDidDeminiaturize:notification];
shell_->AttachChildren();
shell_->SetWindowLevel(level_);
shell_->NotifyWindowRestore();
}