[Webkit-unassigned] [Bug 137685] [GTK] Move click counter logic back to WebKitWebViewBase

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 11 08:42:36 PST 2014


https://bugs.webkit.org/show_bug.cgi?id=137685

Martin Robinson <mrobinson at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #243124|review?                     |review+
              Flags|                            |

--- Comment #8 from Martin Robinson <mrobinson at webkit.org> ---
Comment on attachment 243124
  --> https://bugs.webkit.org/attachment.cgi?id=243124
New patch

View in context: https://bugs.webkit.org/attachment.cgi?id=243124&action=review

> Source/WebKit2/UIProcess/API/gtk/WebKitWebViewBase.cpp:768
> +    // For double and triple clicks GDK sends both a normal button press event
> +    // and a specific type (like GDK_2BUTTON_PRESS). If we detect a special press
> +    // coming up, ignore this event as it certainly generated the double or triple
> +    // click. The consequence of not eating this event is two DOM button press events
> +    // are generated.
> +    GUniquePtr<GdkEvent> nextEvent(gdk_event_peek());
> +    if (nextEvent && (nextEvent->any.type == GDK_2BUTTON_PRESS || nextEvent->any.type == GDK_3BUTTON_PRESS))
>          return TRUE;

I think I prefer this method as part of the click counter, since understanding types of click events is what it's good at.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20141211/98ffa05c/attachment-0002.html>


More information about the webkit-unassigned mailing list