Index: ui/views/controls/menu/menu_controller.cc |
=================================================================== |
--- ui/views/controls/menu/menu_controller.cc (revision 250790) |
+++ ui/views/controls/menu/menu_controller.cc (working copy) |
@@ -2130,9 +2130,8 @@ |
gfx::Screen* screen = gfx::Screen::GetScreenFor(native_view); |
gfx::NativeWindow window = screen->GetWindowAtScreenPoint(screen_loc); |
- if (!window) |
- return; |
- |
+ // On Windows, it is ok for window to be NULL. Please refer to the |
+ // RepostLocatedEvent function for more information. |
#if defined(OS_WIN) |
// Release the capture. |
SubmenuView* submenu = state_.item->GetRootMenuItem()->GetSubmenu(); |
@@ -2149,6 +2148,9 @@ |
return; |
} |
} |
+#else |
+ if (!window) |
+ return; |
#endif |
scoped_ptr<ui::LocatedEvent> clone; |