Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(342)

Unified Diff: ui/aura/window_event_dispatcher.cc

Issue 446673004: Hack in order to fix crbug.com/394672 in M38 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/views/widget/widget_interactive_uitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_event_dispatcher.cc
diff --git a/ui/aura/window_event_dispatcher.cc b/ui/aura/window_event_dispatcher.cc
index 2e42a9559614609352bad7f2b3e80ff9ba60bdd0..9bd93dea7e3d3d79b8c445bd9232c6004ecb3504 100644
--- a/ui/aura/window_event_dispatcher.cc
+++ b/ui/aura/window_event_dispatcher.cc
@@ -388,6 +388,9 @@ void WindowEventDispatcher::UpdateCapture(Window* old_capture,
}
void WindowEventDispatcher::OnOtherRootGotCapture() {
+ // Sending the mouse exit causes bugs on Windows (e.g. crbug.com/394672).
+ // TODO(pkotwicz): Fix the bugs and send mouse exit on Windows too.
+#if !defined(OS_WIN)
if (mouse_moved_handler_) {
// Dispatch a mouse exit to reset any state associated with hover. This is
// important when going from no window having capture to a window having
@@ -397,6 +400,7 @@ void WindowEventDispatcher::OnOtherRootGotCapture() {
if (details.dispatcher_destroyed)
return;
}
+#endif
mouse_moved_handler_ = NULL;
mouse_pressed_handler_ = NULL;
« no previous file with comments | « no previous file | ui/views/widget/widget_interactive_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698