views: Switching to other window should hide the menubar.

This commit is contained in:
Cheng Zhao 2014-08-07 14:02:03 +08:00
parent 8a9e1824c3
commit f219e7f0dd

View file

@ -439,6 +439,12 @@ void NativeWindowViews::OnWidgetActivationChanged(
NotifyWindowFocus();
else
NotifyWindowBlur();
// The menu bar should be hide when window is closed
if (!active && menu_bar_autohide_ && menu_bar_show_) {
SetMenuBarVisibility(false);
Layout();
}
}
void NativeWindowViews::DeleteDelegate() {