| Index: components/mus/ws/event_dispatcher.cc
|
| diff --git a/components/mus/ws/event_dispatcher.cc b/components/mus/ws/event_dispatcher.cc
|
| index aa06ec4a3911c2debd1eb3dcd768b2e9db25759a..2df70cadcf6cb314cdf9ee42e91d4fa687e30194 100644
|
| --- a/components/mus/ws/event_dispatcher.cc
|
| +++ b/components/mus/ws/event_dispatcher.cc
|
| @@ -34,8 +34,12 @@ bool IsOnlyOneMouseButtonDown(mojom::EventFlags flags) {
|
|
|
| bool IsLocationInNonclientArea(const ServerWindow* target,
|
| const gfx::Point& location) {
|
| - return target->parent() &&
|
| - !target->client_area().Contains(location);
|
| + if (!target->parent())
|
| + return false;
|
| +
|
| + gfx::Rect client_area(target->bounds().size());
|
| + client_area.Inset(target->client_area());
|
| + return !client_area.Contains(location);
|
| }
|
|
|
| gfx::Point EventLocationToPoint(const mojom::Event& event) {
|
|
|