| Index: ui/gfx/screen_win.cc
|
| diff --git a/ui/gfx/screen_win.cc b/ui/gfx/screen_win.cc
|
| index 0da5833a0c9c143b688619204d47079dfa6ceef1..4530642e24bcd7450f0eae014091b9c4b772d192 100644
|
| --- a/ui/gfx/screen_win.cc
|
| +++ b/ui/gfx/screen_win.cc
|
| @@ -76,7 +76,8 @@ gfx::NativeWindow ScreenWin::GetWindowUnderCursor() {
|
| }
|
|
|
| gfx::NativeWindow ScreenWin::GetWindowAtScreenPoint(const gfx::Point& point) {
|
| - return GetNativeWindowFromHWND(WindowFromPoint(point.ToPOINT()));
|
| + gfx::Point point_in_pixels = gfx::win::DIPToScreenPoint(point);
|
| + return GetNativeWindowFromHWND(WindowFromPoint(point_in_pixels.ToPOINT()));
|
| }
|
|
|
| int ScreenWin::GetNumDisplays() const {
|
|
|