| Index: ui/display/win/screen_win.cc
|
| diff --git a/ui/display/win/screen_win.cc b/ui/display/win/screen_win.cc
|
| index e79645d4d15f2a11ce9bc4d243123a38c5847bf4..0667369bd5d61d8cb716b3ffa7f3de590ceca88c 100644
|
| --- a/ui/display/win/screen_win.cc
|
| +++ b/ui/display/win/screen_win.cc
|
| @@ -161,11 +161,11 @@ gfx::Point ScreenWin::GetCursorScreenPoint() {
|
| return ScreenToDIPPoint(cursor_pos_pixels);
|
| }
|
|
|
| -gfx::NativeWindow ScreenWin::GetWindowUnderCursor() {
|
| +bool ScreenWin::IsWindowUnderCursor(gfx::NativeWindow window) {
|
| POINT cursor_loc;
|
| HWND hwnd =
|
| ::GetCursorPos(&cursor_loc) ? ::WindowFromPoint(cursor_loc) : nullptr;
|
| - return GetNativeWindowFromHWND(hwnd);
|
| + return GetNativeWindowFromHWND(hwnd) == window;
|
| }
|
|
|
| gfx::NativeWindow ScreenWin::GetWindowAtScreenPoint(const gfx::Point& point) {
|
|
|