summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
Diffstat (limited to 'webkit')
-rw-r--r--webkit/plugins/npapi/webplugin_delegate_impl_win.cc12
1 files changed, 11 insertions, 1 deletions
diff --git a/webkit/plugins/npapi/webplugin_delegate_impl_win.cc b/webkit/plugins/npapi/webplugin_delegate_impl_win.cc
index 149b1e8..1e82cad 100644
--- a/webkit/plugins/npapi/webplugin_delegate_impl_win.cc
+++ b/webkit/plugins/npapi/webplugin_delegate_impl_win.cc
@@ -1404,9 +1404,19 @@ void WebPluginDelegateImpl::HandleCaptureForMessage(HWND window,
switch (message) {
case WM_LBUTTONDOWN:
case WM_MBUTTONDOWN:
- case WM_RBUTTONDOWN:
+ case WM_RBUTTONDOWN: {
::SetCapture(window);
+ // As per documentation the WM_PARENTNOTIFY message is sent to the parent
+ // window chain if mouse input is received by the child window. However
+ // the parent receives the WM_PARENTNOTIFY message only if we doubleclick
+ // on the window. We send the WM_PARENTNOTIFY message for mouse input
+ // messages to the parent to indicate that user action is expected.
+ HWND parent = GetParent(window);
+ if (IsWindow(parent)) {
+ ::SendMessage(parent, WM_PARENTNOTIFY, message, 0);
+ }
break;
+ }
case WM_LBUTTONUP:
case WM_MBUTTONUP: