do not call SetFullScreen in SetKiosk if it's already fullscreen mode
This commit is contained in:
parent
71512ad244
commit
a23d8ed702
1 changed files with 1 additions and 1 deletions
|
@ -1128,7 +1128,7 @@ void NativeWindowMac::SetKiosk(bool kiosk) {
|
|||
[NSApp setPresentationOptions:options];
|
||||
is_kiosk_ = true;
|
||||
was_fullscreen_ = IsFullscreen();
|
||||
SetFullScreen(true);
|
||||
if (!was_fullscreen_) SetFullScreen(true);
|
||||
} else if (!kiosk && is_kiosk_) {
|
||||
is_kiosk_ = false;
|
||||
if (!was_fullscreen_) SetFullScreen(false);
|
||||
|
|
Loading…
Reference in a new issue