| Index: ui/views/controls/menu/menu_controller.cc
|
| diff --git a/ui/views/controls/menu/menu_controller.cc b/ui/views/controls/menu/menu_controller.cc
|
| index 6290ab9e3edf2e8dddf0fb195635f3887ad7b42c..1dde6bcb3deb827f812b7603774fa64897aba906 100644
|
| --- a/ui/views/controls/menu/menu_controller.cc
|
| +++ b/ui/views/controls/menu/menu_controller.cc
|
| @@ -1443,11 +1443,12 @@ bool MenuController::ShowSiblingMenu(SubmenuView* source,
|
| return false;
|
| }
|
|
|
| - gfx::NativeWindow window_under_mouse =
|
| - display::Screen::GetScreen()->GetWindowUnderCursor();
|
| // TODO(oshima): Replace with views only API.
|
| - if (!owner_ || window_under_mouse != owner_->GetNativeWindow())
|
| + if (!owner_ ||
|
| + !display::Screen::GetScreen()->IsWindowUnderCursor(
|
| + owner_->GetNativeWindow())) {
|
| return false;
|
| + }
|
|
|
| // The user moved the mouse outside the menu and over the owning window. See
|
| // if there is a sibling menu we should show.
|
|
|