Only change window state when fullscreen is true

This commit is contained in:
Kevin Sawicki 2016-08-24 14:30:29 -07:00
parent 7bdce52290
commit 459c80da4e

View file

@ -506,7 +506,7 @@ void NativeWindowViews::SetFullScreen(bool fullscreen) {
#else #else
if (IsVisible()) if (IsVisible())
window_->SetFullscreen(fullscreen); window_->SetFullscreen(fullscreen);
else else if (fullscreen)
window_->native_widget_private()->ShowWithWindowState( window_->native_widget_private()->ShowWithWindowState(
ui::SHOW_STATE_FULLSCREEN); ui::SHOW_STATE_FULLSCREEN);