Index: ui/views/mouse_watcher_view_host.cc |
diff --git a/ui/views/mouse_watcher_view_host.cc b/ui/views/mouse_watcher_view_host.cc |
index a2a917ad7d0d848902a2cf60e380413b0bf60be5..1d420fa1cbc578d826a14561ac7ff004d12cb04f 100644 |
--- a/ui/views/mouse_watcher_view_host.cc |
+++ b/ui/views/mouse_watcher_view_host.cc |
@@ -49,8 +49,8 @@ bool MouseWatcherViewHost::IsMouseOverWindow() { |
if (!widget) |
return false; |
- return gfx::Screen::GetWindowAtCursorScreenPoint() == |
- widget->GetNativeWindow(); |
+ return gfx::Screen::GetScreenFor(widget->GetNativeView())-> |
+ GetWindowAtCursorScreenPoint() == widget->GetNativeWindow(); |
} |
} // namespace views |