From 459c80da4ec6e1424fdec3165d4c68d058d12a41 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 24 Aug 2016 14:30:29 -0700 Subject: [PATCH] Only change window state when fullscreen is true --- atom/browser/native_window_views.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);