Chromium Code Reviews| 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 = |