Index: ui/aura/window_event_dispatcher.cc |
diff --git a/ui/aura/window_event_dispatcher.cc b/ui/aura/window_event_dispatcher.cc |
index 70c35dd62ff7e6a7dfee1da6fe579018f0743447..2e42a9559614609352bad7f2b3e80ff9ba60bdd0 100644 |
--- a/ui/aura/window_event_dispatcher.cc |
+++ b/ui/aura/window_event_dispatcher.cc |
@@ -199,6 +199,11 @@ |
if (client) |
client->ConvertPointFromScreen(window(), &location); |
return location; |
+} |
+ |
+void WindowEventDispatcher::OnHostLostMouseGrab() { |
+ mouse_pressed_handler_ = NULL; |
+ mouse_moved_handler_ = NULL; |
} |
void WindowEventDispatcher::OnCursorMovedToRootLocation( |