summaryrefslogtreecommitdiffstats
path: root/ash/wm/drag_window_resizer.cc
diff options
context:
space:
mode:
authoroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-26 08:02:21 +0000
committeroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-26 08:02:21 +0000
commit8378c537e2399d99a9cfbafe11967c328429b5dc (patch)
treecab536d1663848043521a3227733c4d14036b663 /ash/wm/drag_window_resizer.cc
parenta705c7ee7f55f4740a7f595e6bffbb60b2c91917 (diff)
downloadchromium_src-8378c537e2399d99a9cfbafe11967c328429b5dc.zip
chromium_src-8378c537e2399d99a9cfbafe11967c328429b5dc.tar.gz
chromium_src-8378c537e2399d99a9cfbafe11967c328429b5dc.tar.bz2
Use GetDisplayNearestWindow instead of GetDislpaymatching where appropriate
This is correct way to tell on which display the window is on as a window doesn't overlap two displays on ash. BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=213347 Review URL: https://chromiumcodereview.appspot.com/19593008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213788 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/wm/drag_window_resizer.cc')
-rw-r--r--ash/wm/drag_window_resizer.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/ash/wm/drag_window_resizer.cc b/ash/wm/drag_window_resizer.cc
index ca332b9..e8f977e 100644
--- a/ash/wm/drag_window_resizer.cc
+++ b/ash/wm/drag_window_resizer.cc
@@ -181,8 +181,7 @@ void DragWindowResizer::UpdateDragWindow(const gfx::Rect& bounds,
new DragWindowController(GetTarget()));
// Always show the drag phantom on the |another_root| window.
drag_window_controller_->SetDestinationDisplay(
- Shell::GetScreen()->GetDisplayMatching(
- another_root->GetBoundsInScreen()));
+ Shell::GetScreen()->GetDisplayNearestWindow(another_root));
drag_window_controller_->Show();
} else {
// No animation.