diff --git a/atom/browser/native_window_views.cc b/atom/browser/native_window_views.cc index 30ff4f962a45..43b6d6508ceb 100644 --- a/atom/browser/native_window_views.cc +++ b/atom/browser/native_window_views.cc @@ -506,7 +506,7 @@ void NativeWindowViews::SetFullScreen(bool fullscreen) { #else if (IsVisible()) window_->SetFullscreen(fullscreen); - else + else if (fullscreen) window_->native_widget_private()->ShowWithWindowState( ui::SHOW_STATE_FULLSCREEN);