fix: fullscreen windows aren't resizable on macOS (#34379)

This commit is contained in:
Shelley Vohr 2022-06-03 09:47:19 +02:00 committed by GitHub
parent b00c026a54
commit 6038e42c23
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 36 additions and 11 deletions

View file

@ -234,12 +234,14 @@ using FullScreenTransitionState =
}
- (void)windowWillEnterFullScreen:(NSNotification*)notification {
// Store resizable mask so it can be restored after exiting fullscreen.
is_resizable_ = shell_->HasStyleMask(NSWindowStyleMaskResizable);
shell_->SetFullScreenTransitionState(FullScreenTransitionState::ENTERING);
shell_->NotifyWindowWillEnterFullScreen();
// Setting resizable to true before entering fullscreen.
is_resizable_ = shell_->IsResizable();
// Set resizable to true before entering fullscreen.
shell_->SetResizable(true);
}