Index: ash/wm/coordinate_conversion.cc |
diff --git a/ash/wm/coordinate_conversion.cc b/ash/wm/coordinate_conversion.cc |
index 0033d3359bd6eca6ebef0d657974b028d4177c01..0da9b654cc9f79495b2489b13fb866ddbfa9b463 100644 |
--- a/ash/wm/coordinate_conversion.cc |
+++ b/ash/wm/coordinate_conversion.cc |
@@ -18,7 +18,8 @@ namespace ash { |
namespace wm { |
aura::RootWindow* GetRootWindowAt(const gfx::Point& point) { |
- const gfx::Display& display = gfx::Screen::GetDisplayNearestPoint(point); |
+ const gfx::Display& display = gfx::Screen::GetDisplayNearestPoint( |
+ ash::Shell::GetRootNativeView(), point); |
// TODO(yusukes): Move coordinate_conversion.cc and .h to ui/aura/ once |
// GetRootWindowForDisplayId() is moved to aura::Env. |
return Shell::GetInstance()->display_controller()-> |
@@ -26,7 +27,8 @@ aura::RootWindow* GetRootWindowAt(const gfx::Point& point) { |
} |
aura::RootWindow* GetRootWindowMatching(const gfx::Rect& rect) { |
- const gfx::Display& display = gfx::Screen::GetDisplayMatching(rect); |
+ const gfx::Display& display = gfx::Screen::GetDisplayMatching( |
+ ash::Shell::GetRootNativeView(), rect); |
return Shell::GetInstance()->display_controller()-> |
GetRootWindowForDisplayId(display.id()); |
} |