Focus window on menu bar click
This commit is contained in:
parent
93464b8100
commit
98387e50cc
4 changed files with 10 additions and 8 deletions
|
@ -846,7 +846,7 @@ void NativeWindowViews::SetMenu(AtomMenuModel* menu_model) {
|
|||
|
||||
if (!menu_bar_) {
|
||||
gfx::Size content_size = GetContentSize();
|
||||
menu_bar_.reset(new MenuBar);
|
||||
menu_bar_.reset(new MenuBar(this));
|
||||
menu_bar_->set_owned_by_client();
|
||||
|
||||
if (!menu_bar_autohide_) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue