Index: ui/aura/event.cc |
diff --git a/ui/aura/event.cc b/ui/aura/event.cc |
index c2a0510d398b92d2dd14bcb0c1cc217cee01b31e..1837cfaa627dbd712ff1c8c71994ee56636de333 100644 |
--- a/ui/aura/event.cc |
+++ b/ui/aura/event.cc |
@@ -129,7 +129,11 @@ void LocatedEvent::UpdateForRootTransform(const ui::Transform& root_transform) { |
MouseEvent::MouseEvent(const base::NativeEvent& native_event) |
: LocatedEvent(native_event) { |
- if (type() == ui::ET_MOUSE_PRESSED) |
+ if (type() == ui::ET_MOUSE_PRESSED |
+#if defined(USE_X11) |
+ && !native_event->xany.send_event |
+#endif |
+ ) |
SetClickCount(GetRepeatCount(*this)); |
} |