| Index: chrome/browser/ui/views/tabs/tab_drag_controller.cc
|
| diff --git a/chrome/browser/ui/views/tabs/tab_drag_controller.cc b/chrome/browser/ui/views/tabs/tab_drag_controller.cc
|
| index b1c1e17915c0cf99ea354d2fc6c0c55e3a5577d3..65fd89542b25e4fecb8d3d0ac9c702b8ebe0190f 100644
|
| --- a/chrome/browser/ui/views/tabs/tab_drag_controller.cc
|
| +++ b/chrome/browser/ui/views/tabs/tab_drag_controller.cc
|
| @@ -673,7 +673,9 @@ gfx::Point TabDragController::GetWindowCreatePoint(
|
|
|
| // If the cursor is outside the monitor area, move it inside. For example,
|
| // dropping a tab onto the task bar on Windows produces this situation.
|
| - gfx::Rect work_area = gfx::Screen::GetDisplayNearestPoint(origin).work_area();
|
| + gfx::Rect work_area = gfx::Screen::GetScreenFor(
|
| + source_tabstrip_->GetWidget()->GetNativeView())->
|
| + GetDisplayNearestPoint(origin).work_area();
|
| gfx::Point create_point(origin);
|
| if (!work_area.IsEmpty()) {
|
| if (create_point.x() < work_area.x())
|
| @@ -1988,7 +1990,8 @@ gfx::Point TabDragController::GetCursorScreenPoint() {
|
| return touch_point;
|
| }
|
| #endif
|
| - return gfx::Screen::GetCursorScreenPoint();
|
| + return gfx::Screen::GetScreenFor(
|
| + GetAttachedBrowserWidget()->GetNativeView())->GetCursorScreenPoint();
|
| }
|
|
|
| gfx::Point TabDragController::GetWindowOffset(
|
|
|