Auto-hide menubar when in fullscreen
This commit is contained in:
parent
32f3f3244e
commit
a1a870fe43
1 changed files with 6 additions and 0 deletions
|
@ -504,6 +504,12 @@ void NativeWindowViews::SetFullScreen(bool fullscreen) {
|
|||
else
|
||||
window_->native_widget_private()->ShowWithWindowState(
|
||||
ui::SHOW_STATE_FULLSCREEN);
|
||||
|
||||
// Auto-hide menubar when in fullscreen.
|
||||
if (fullscreen)
|
||||
SetMenuBarVisibility(false);
|
||||
else
|
||||
SetMenuBarVisibility(!menu_bar_autohide_);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue