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

Unified Diff: ui/aura/root_window_host_x11.cc

Issue 22264002: Mark mouse events created for Enter/Leave notify as synthesized as they're not real mouse events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/corewm/compound_event_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/root_window_host_x11.cc
diff --git a/ui/aura/root_window_host_x11.cc b/ui/aura/root_window_host_x11.cc
index 0d00318f2a31b70b8fa0cb798da9ac72166c1680..ec9c2ab26a032963c02aaeda1605b916b531d1c8 100644
--- a/ui/aura/root_window_host_x11.cc
+++ b/ui/aura/root_window_host_x11.cc
@@ -461,6 +461,8 @@ bool RootWindowHostX11::Dispatch(const base::NativeEvent& event) {
case EnterNotify:
case LeaveNotify: {
ui::MouseEvent mouse_event(xev);
+ // Mark as synthesized as this is not real mouse event.
+ mouse_event.set_flags(mouse_event.flags() | ui::EF_IS_SYNTHESIZED);
sky 2013/08/06 21:11:05 This seems like a real event to me. Why the synthe
sadrul 2013/08/06 21:18:51 My understanding is the EF_IS_SYNTHESIZED is set h
oshima 2013/08/06 21:20:32 This creates mouse MOVE event, even though mouse d
sky 2013/08/06 21:37:47 Then should the synthesized be on the move and not
TranslateAndDispatchMouseEvent(&mouse_event);
break;
}
« no previous file with comments | « no previous file | ui/views/corewm/compound_event_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698