| Index: ash/wm/workspace/workspace_event_handler.cc
|
| ===================================================================
|
| --- ash/wm/workspace/workspace_event_handler.cc (revision 156300)
|
| +++ ash/wm/workspace/workspace_event_handler.cc (working copy)
|
| @@ -80,6 +80,11 @@
|
| case ui::ET_MOUSE_EXITED:
|
| break;
|
| case ui::ET_MOUSE_PRESSED: {
|
| + // Maximize behavior is implemented as post-target handling so the target
|
| + // can cancel it.
|
| + if (ui::EventCanceledDefaultHandling(*event))
|
| + return ToplevelWindowEventHandler::OnMouseEvent(event);
|
| +
|
| if (event->flags() & ui::EF_IS_DOUBLE_CLICK &&
|
| target->delegate()->GetNonClientComponent(event->location()) ==
|
| HTCAPTION) {
|
|
|