Merge pull request #6961 from electron/fullscreen-linux

Only change window state when fullscreen is true
This commit is contained in:
Cheng Zhao
2016-08-25 09:23:02 +09:00
committed by GitHub

View File

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