| Index: ui/aura/root_window.cc
|
| diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc
|
| index 95eeee18af7a6500828d8ff45b62d487fca9a809..8ac31e76f47df6b693badcdfd21e7dbc53534c80 100644
|
| --- a/ui/aura/root_window.cc
|
| +++ b/ui/aura/root_window.cc
|
| @@ -1037,13 +1037,9 @@ bool RootWindow::DispatchMouseEventToTarget(ui::MouseEvent* event,
|
| break;
|
| }
|
| if (target) {
|
| - int flags = event->flags();
|
| - gfx::Point location_in_window = event->location();
|
| - Window::ConvertPointToTarget(this, target, &location_in_window);
|
| - if (IsNonClientLocation(target, location_in_window))
|
| - flags |= ui::EF_IS_NON_CLIENT;
|
| - event->set_flags(flags);
|
| event->ConvertLocationToTarget(static_cast<Window*>(this), target);
|
| + if (IsNonClientLocation(target, event->location()))
|
| + event->set_flags(event->flags() | ui::EF_IS_NON_CLIENT);
|
| return ProcessMouseEvent(target, event);
|
| }
|
| return false;
|
|
|