Index: ui/aura/root_window.cc |
diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc |
index 128a04424d45ae084e9b6ecfbd659e1d1b42979a..9b1185048de6501a70d7ce410ba41dc0d45d0cd3 100644 |
--- a/ui/aura/root_window.cc |
+++ b/ui/aura/root_window.cc |
@@ -712,11 +712,10 @@ void RootWindow::OnHostResized(const gfx::Size& size) { |
FOR_EACH_OBSERVER(RootWindowObserver, observers_, |
OnWindowTreeHostResized(this)); |
- // Constrain the mouse position within the new root Window size. |
gfx::Point point; |
if (host_->QueryMouseLocation(&point)) { |
- SetLastMouseLocation(window(), |
- ui::ConvertPointToDIP(window()->layer(), point)); |
+ host_->ConvertPointFromHost(&point); |
+ SetLastMouseLocation(window(), point); |
} |
synthesize_mouse_move_ = false; |
} |