Browse Source

Merge pull request #8441 from watilde/feature/tweak-kiosk

do not call SetFullScreen in SetKiosk if it's already fullscreen mode
Kevin Sawicki 8 years ago
parent
commit
a3af6bd9f5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      atom/browser/native_window_mac.mm

+ 1 - 1
atom/browser/native_window_mac.mm

@@ -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);