fix: Cmd+Tab not working when exiting kiosk mode (#36854)
This commit is contained in:
parent
ad1a09bb10
commit
a9e7bb0027
1 changed files with 4 additions and 1 deletions
|
@ -1030,9 +1030,12 @@ void NativeWindowMac::SetKiosk(bool kiosk) {
|
||||||
is_kiosk_ = true;
|
is_kiosk_ = true;
|
||||||
SetFullScreen(true);
|
SetFullScreen(true);
|
||||||
} else if (!kiosk && is_kiosk_) {
|
} else if (!kiosk && is_kiosk_) {
|
||||||
[NSApp setPresentationOptions:kiosk_options_];
|
|
||||||
is_kiosk_ = false;
|
is_kiosk_ = false;
|
||||||
SetFullScreen(false);
|
SetFullScreen(false);
|
||||||
|
|
||||||
|
// Set presentation options *after* asynchronously exiting
|
||||||
|
// fullscreen to ensure they take effect.
|
||||||
|
[NSApp setPresentationOptions:kiosk_options_];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue