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

Unified Diff: trunk/src/ash/wm/drag_window_resizer.cc

Issue 19668011: Revert 213347 "Use GetDisplayNearestWindow instead of GetDislpa..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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 | trunk/src/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: trunk/src/ash/wm/drag_window_resizer.cc
===================================================================
--- trunk/src/ash/wm/drag_window_resizer.cc (revision 213355)
+++ trunk/src/ash/wm/drag_window_resizer.cc (working copy)
@@ -181,7 +181,8 @@
new DragWindowController(GetTarget()));
// Always show the drag phantom on the |another_root| window.
drag_window_controller_->SetDestinationDisplay(
- Shell::GetScreen()->GetDisplayNearestWindow(another_root));
+ Shell::GetScreen()->GetDisplayMatching(
+ another_root->GetBoundsInScreen()));
drag_window_controller_->Show();
} else {
// No animation.
« no previous file with comments | « no previous file | trunk/src/ash/wm/workspace/auto_window_management.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698