summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorsadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-12 18:12:31 +0000
committersadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-12 18:12:31 +0000
commit14bd3c62945e81490a6689c83a3db514d07e3b2d (patch)
tree94964937d04fde5bf097d354993ece7e7e1283e7 /ui
parenta4ed43cabcc2fb7dca9124d870441bba56bd20a1 (diff)
downloadchromium_src-14bd3c62945e81490a6689c83a3db514d07e3b2d.zip
chromium_src-14bd3c62945e81490a6689c83a3db514d07e3b2d.tar.gz
chromium_src-14bd3c62945e81490a6689c83a3db514d07e3b2d.tar.bz2
XI2.2: Make sure the gesture events correctly translate to mouse events.
BUG=112329 TEST=none Review URL: https://chromiumcodereview.appspot.com/10072002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132017 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui')
-rw-r--r--ui/aura/root_window.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc
index 0133b1c..2254ff4 100644
--- a/ui/aura/root_window.cc
+++ b/ui/aura/root_window.cc
@@ -679,6 +679,10 @@ ui::GestureStatus RootWindow::ProcessGestureEvent(Window* target,
*type == ui::ET_MOUSE_PRESSED)
flags |= ui::EF_IS_DOUBLE_CLICK;
+ // It is necessary to set this explicitly when using XI2.2. When using
+ // XI < 2.2, this is always set anyway.
+ flags |= ui::EF_LEFT_MOUSE_BUTTON;
+
MouseEvent synth(
*type, event->location(), event->root_location(), flags);
if (ProcessMouseEvent(target, &synth))