Skip to content
Permalink
Browse files
[WK2][GTK] Propagate motion-notify-event signals from the WebView
https://bugs.webkit.org/show_bug.cgi?id=152974

Reviewed by Carlos Garcia Campos.

Always propagate motion-notify-event signals, regardless of what the
web process does, so that we can listen for those events (which does
not act on specific targets inside the webview) from the container
widget too, and not just from the WebView itself.

* UIProcess/API/gtk/WebKitWebViewBase.cpp:
(webkitWebViewBaseMotionNotifyEvent): Ensure the signal gets propagated.

Canonical link: https://commits.webkit.org/171052@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@194846 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
mariospr committed Jan 11, 2016
1 parent b9782c7 commit 208ddf82e1f47b0e7dcd26ccaf530df59961d5ee
Showing with 17 additions and 2 deletions.
  1. +15 −0 Source/WebKit2/ChangeLog
  2. +2 −2 Source/WebKit2/UIProcess/API/gtk/WebKitWebViewBase.cpp
@@ -1,3 +1,18 @@
2016-01-11 Mario Sanchez Prada <mario@endlessm.com>

[WK2][GTK] Propagate motion-notify-event signals from the WebView
https://bugs.webkit.org/show_bug.cgi?id=152974

Reviewed by Carlos Garcia Campos.

Always propagate motion-notify-event signals, regardless of what the
web process does, so that we can listen for those events (which does
not act on specific targets inside the webview) from the container
widget too, and not just from the WebView itself.

* UIProcess/API/gtk/WebKitWebViewBase.cpp:
(webkitWebViewBaseMotionNotifyEvent): Ensure the signal gets propagated.

2016-01-10 Dan Bernstein <mitz@apple.com>

[Cocoa] Disable header postprocessing when building for El Capitan
@@ -793,11 +793,11 @@ static gboolean webkitWebViewBaseMotionNotifyEvent(GtkWidget* widget, GdkEventMo
WebKitWebViewBasePrivate* priv = webViewBase->priv;

if (priv->authenticationDialog)
return TRUE;
return GTK_WIDGET_CLASS(webkit_web_view_base_parent_class)->motion_notify_event(widget, event);

priv->pageProxy->handleMouseEvent(NativeWebMouseEvent(reinterpret_cast<GdkEvent*>(event), 0 /* currentClickCount */));

return TRUE;
return FALSE;
}

#if ENABLE(TOUCH_EVENTS)

0 comments on commit 208ddf8

Please sign in to comment.