fix: DCHECK minimizing parent window with non-modal child (#38460)
This commit is contained in:
parent
13f9e2db40
commit
40e724e5dd
5 changed files with 107 additions and 17 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue