fix: Cmd+Tab not working when exiting kiosk mode (#36918)

Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
trop[bot]
2023-01-17 20:37:28 +09:00
committed by GitHub
parent 312c681adc
commit 751ba53a6b

View File

@@ -1096,9 +1096,12 @@ void NativeWindowMac::SetKiosk(bool kiosk) {
is_kiosk_ = true;
SetFullScreen(true);
} else if (!kiosk && is_kiosk_) {
[NSApp setPresentationOptions:kiosk_options_];
is_kiosk_ = false;
SetFullScreen(false);
// Set presentation options *after* asynchronously exiting
// fullscreen to ensure they take effect.
[NSApp setPresentationOptions:kiosk_options_];
}
}