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

Unified Diff: ui/aura/event.cc

Issue 9466028: aura: Repost click events that cause a menu to hide itself. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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/controls/menu/menu_controller.h » ('j') | ui/views/controls/menu/menu_controller.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
}
« no previous file with comments | « no previous file | ui/views/controls/menu/menu_controller.h » ('j') | ui/views/controls/menu/menu_controller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698