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

Unified Diff: ash/wm/drag_window_resizer.cc

Issue 23431009: Windows docking should get triggered by pressing against the screen edge (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Windows docking should get triggered by pressing against the screen edge Created 7 years, 3 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
Index: ash/wm/drag_window_resizer.cc
diff --git a/ash/wm/drag_window_resizer.cc b/ash/wm/drag_window_resizer.cc
index e8f977e6418ba041b27c87755a4298423c8a84e4..ec26d3b4299036aef74867bc10bdf25bd4c0572a 100644
--- a/ash/wm/drag_window_resizer.cc
+++ b/ash/wm/drag_window_resizer.cc
@@ -110,8 +110,9 @@ void DragWindowResizer::CompleteDrag(int event_flags) {
&last_mouse_location_in_screen);
gfx::Screen* screen = Shell::GetScreen();
const gfx::Display dst_display =
- screen->GetDisplayNearestPoint(last_mouse_location_in_screen);
-
+ ScreenAsh::FindDisplayContainingPoint(last_mouse_location_in_screen);
+ if (!dst_display.is_valid())
flackr 2013/09/06 02:18:43 What happens in this case? If the drag crossed int
varkha 2013/09/09 15:38:42 I think this only happens when you don't --ash-con
+ return;
if (dst_display.id() !=
screen->GetDisplayNearestWindow(GetTarget()->GetRootWindow()).id()) {
const gfx::Rect dst_bounds =

Powered by Google App Engine
This is Rietveld 408576698