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

This commit is contained in:
Shelley Vohr 2023-01-16 10:06:43 +01:00 committed by GitHub
parent ad1a09bb10
commit a9e7bb0027
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1030,9 +1030,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_];
}
}