Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(555)

Unified Diff: ash/wm/drag_window_resizer.cc

Issue 19593008: Use GetDisplayNearestWindow instead of GetDislpaymatching where appropriate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win8 Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ash/wm/workspace/auto_window_management.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/drag_window_resizer.cc
diff --git a/ash/wm/drag_window_resizer.cc b/ash/wm/drag_window_resizer.cc
index ca332b95f7f4932ce19e8adb3bc3af519051c479..e8f977e6418ba041b27c87755a4298423c8a84e4 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.
« no previous file with comments | « no previous file | ash/wm/workspace/auto_window_management.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698