Only change window state when fullscreen is true
This commit is contained in:
parent
7bdce52290
commit
459c80da4e
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