Merge pull request #6961 from electron/fullscreen-linux
Only change window state when fullscreen is true
This commit is contained in:
commit
6e75e8e2bf
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue