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

Unified Diff: ui/aura/window_tree_host_x11.cc

Issue 2933353003: Mark the ET_MOUSE_MOVED created from a pointer grab as synthesized. (Closed)
Patch Set: Just fail on mouse moves, failing on all mouse events is excessively strict. Created 3 years, 6 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
Index: ui/aura/window_tree_host_x11.cc
diff --git a/ui/aura/window_tree_host_x11.cc b/ui/aura/window_tree_host_x11.cc
index 0635b7a65ff21e4b22f58649ced937e831269c81..d57358cf49a837d9a30ecdb6af3b4e1c749cb640 100644
--- a/ui/aura/window_tree_host_x11.cc
+++ b/ui/aura/window_tree_host_x11.cc
@@ -252,9 +252,6 @@ uint32_t WindowTreeHostX11::DispatchEvent(const ui::PlatformEvent& event) {
root_window);
cursor_client->SetDisplay(display);
}
- // EnterNotify creates ET_MOUSE_MOVE. Mark as synthesized as this is
- // not a real mouse move event.
- mouse_event.set_flags(mouse_event.flags() | ui::EF_IS_SYNTHESIZED);
}
TranslateAndDispatchLocatedEvent(&mouse_event);

Powered by Google App Engine
This is Rietveld 408576698