Index: mash/wm/frame/move_event_handler.cc |
diff --git a/mash/wm/frame/move_event_handler.cc b/mash/wm/frame/move_event_handler.cc |
index 256e0aa88d32b6a18a79fa2acdbf0621d787dcec..0d3e3ca3974243424099ad45da3ae4e49208a408 100644 |
--- a/mash/wm/frame/move_event_handler.cc |
+++ b/mash/wm/frame/move_event_handler.cc |
@@ -58,6 +58,12 @@ void MoveEventHandler::ProcessLocatedEvent(ui::LocatedEvent* event) { |
const bool had_move_loop = move_loop_.get() != nullptr; |
DCHECK(event->IsMouseEvent() || event->IsTouchEvent()); |
+ // Non-client buttons like the close box capture the mouse during clicks. |
+ // Explicitly ignore those events here instead of below because there is no |
+ // PointerEvent equivalent into which the event can be converted. |
+ if (event->type() == ui::ET_MOUSE_CAPTURE_CHANGED) |
msw
2016/03/29 15:47:40
The PointerEvent ctors will NOTREACHED on other mo
James Cook
2016/03/29 17:38:07
Yeah, good point. I talked to Sadrul and we decid
|
+ return; |
+ |
// TODO(moshayedi): no need for this once MoveEventHandler directly receives |
// pointer events. |
scoped_ptr<ui::PointerEvent> pointer_event; |