From 70fc3569e0d4eae1c02705b04c857c3933007393 Mon Sep 17 00:00:00 2001 From: "estade@chromium.org" Date: Tue, 24 Nov 2009 23:33:10 +0000 Subject: 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 --- chrome/browser/renderer_host/render_widget_host_view_gtk.cc | 2 ++ 1 file changed, 2 insertions(+) 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. -- cgit v1.1