| Index: ash/wm/resize_handle_window_targeter.cc
|
| diff --git a/ash/wm/resize_handle_window_targeter.cc b/ash/wm/resize_handle_window_targeter.cc
|
| index e150eea94daa4022ef149f1ad43667fa493d7232..f2519b4fe6e4c178b933bbcbb4759a0aecf6d8d7 100644
|
| --- a/ash/wm/resize_handle_window_targeter.cc
|
| +++ b/ash/wm/resize_handle_window_targeter.cc
|
| @@ -70,8 +70,10 @@ aura::Window* ResizeHandleWindowTargeter::FindTargetForLocatedEvent(
|
|
|
| if (!insets.IsEmpty()) {
|
| gfx::Rect bounds = gfx::Rect(window_->bounds().size());
|
| - bounds.Inset(insets);
|
| - if (!bounds.Contains(event->location()))
|
| + gfx::Rect insetBounds(bounds);
|
| + insetBounds.Inset(insets);
|
| + if (!insetBounds.Contains(event->location()) &&
|
| + bounds.Contains(event->location()))
|
| return window_;
|
| }
|
| }
|
|
|