Index: ash/wm/maximize_bubble_controller.cc |
diff --git a/ash/wm/maximize_bubble_controller.cc b/ash/wm/maximize_bubble_controller.cc |
index a08c7601b9fac76c5b59f2a08b0c14dd9f732316..1a30c64a4a0b28477e7fb9ca800db685f3cc225e 100644 |
--- a/ash/wm/maximize_bubble_controller.cc |
+++ b/ash/wm/maximize_bubble_controller.cc |
@@ -490,7 +490,8 @@ void MaximizeBubbleController::Bubble::MouseMovedOutOfHost() { |
// When we leave the bubble, we might be still be in gesture mode or over |
// the maximize button. So only close if none of the other cases apply. |
if (!owner_->frame_maximize_button()->is_snap_enabled()) { |
- gfx::Point screen_location = gfx::Screen::GetCursorScreenPoint(); |
+ gfx::Point screen_location = gfx::Screen::GetCursorScreenPoint( |
+ ash::Shell::GetRootNativeView()); |
if (!owner_->frame_maximize_button()->GetBoundsInScreen().Contains( |
screen_location)) { |
owner_->RequestDestructionThroughOwner(); |