diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-24 23:33:10 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-24 23:33:10 +0000 |
commit | 70fc3569e0d4eae1c02705b04c857c3933007393 (patch) | |
tree | 5cca052a533cf666c30dc0fb38948593a117e076 | |
parent | 6f5f01be566d0d5f2765ffd178e7c711c99eea61 (diff) | |
download | chromium_src-70fc3569e0d4eae1c02705b04c857c3933007393.zip chromium_src-70fc3569e0d4eae1c02705b04c857c3933007393.tar.gz chromium_src-70fc3569e0d4eae1c02705b04c857c3933007393.tar.bz2 |
GTK: Don't send double/triple click events to renderer.
This goes along with webkit bug: https://bugs.webkit.org/show_bug.cgi?id=31841
BUG=17466
Review URL: http://codereview.chromium.org/431031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32998 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/renderer_host/render_widget_host_view_gtk.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/renderer_host/render_widget_host_view_gtk.cc b/chrome/browser/renderer_host/render_widget_host_view_gtk.cc index fc3f429..5fbe32f 100644 --- a/chrome/browser/renderer_host/render_widget_host_view_gtk.cc +++ b/chrome/browser/renderer_host/render_widget_host_view_gtk.cc @@ -197,6 +197,8 @@ class RenderWidgetHostViewGtkWidget { RenderWidgetHostViewGtk* host_view) { if (!(event->button == 1 || event->button == 2 || event->button == 3)) return FALSE; // We do not forward any other buttons to the renderer. + if (event->type == GDK_2BUTTON_PRESS || event->type == GDK_3BUTTON_PRESS) + return FALSE; // We want to translate the coordinates of events that do not originate // from this widget to be relative to the top left of the widget. |