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

Unified Diff: ui/events/platform/x11/x11_event_source_libevent.cc

Issue 2933353003: Mark the ET_MOUSE_MOVED created from a pointer grab as synthesized. (Closed)
Patch Set: Clarify comment. Created 3 years, 5 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 | « ui/aura/window_tree_host_x11.cc ('k') | ui/events/x/events_x_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/platform/x11/x11_event_source_libevent.cc
diff --git a/ui/events/platform/x11/x11_event_source_libevent.cc b/ui/events/platform/x11/x11_event_source_libevent.cc
index 7edd46c84661c99ee44eef5d3667cdec56b8b6c6..85bdb73d2789428b25a85798f336291199901063 100644
--- a/ui/events/platform/x11/x11_event_source_libevent.cc
+++ b/ui/events/platform/x11/x11_event_source_libevent.cc
@@ -87,10 +87,6 @@ std::unique_ptr<ui::Event> TranslateXEventToEvent(const XEvent& xev) {
switch (xev.type) {
case LeaveNotify:
case EnterNotify:
- // EnterNotify creates ET_MOUSE_MOVED. Mark as synthesized as this is
- // not real mouse move event.
- if (xev.type == EnterNotify)
- flags |= EF_IS_SYNTHESIZED;
return base::MakeUnique<MouseEvent>(ET_MOUSE_MOVED,
EventLocationFromXEvent(xev),
EventSystemLocationFromXEvent(xev),
« no previous file with comments | « ui/aura/window_tree_host_x11.cc ('k') | ui/events/x/events_x_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698