From 41acbe3de775a31cf8aa9d3bb829f996f631de85 Mon Sep 17 00:00:00 2001 From: Jim Mathies Date: Mon, 20 Dec 2010 08:45:59 -0600 Subject: [PATCH] Bug 572417 - Release mouse capture in flash subclass after mouse events get delivered. r=bsmedberg, a=betaN. --- dom/plugins/PluginInstanceChild.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dom/plugins/PluginInstanceChild.cpp b/dom/plugins/PluginInstanceChild.cpp index a0f34cf618..780e4e7a67 100644 --- a/dom/plugins/PluginInstanceChild.cpp +++ b/dom/plugins/PluginInstanceChild.cpp @@ -1176,12 +1176,15 @@ PluginInstanceChild::PluginWindowProc(HWND hWnd, return 0; } + LRESULT res = CallWindowProc(self->mPluginWndProc, hWnd, message, wParam, + lParam); + // Make sure capture is released by the child on mouse events. Fixes a // problem with flash full screen mode mouse input. Appears to be // caused by a bug in flash, since we are not setting the capture // on the window. (In non-oopp land, we would set and release via // widget for other reasons.) - switch(message) { + switch (message) { case WM_LBUTTONDOWN: case WM_MBUTTONDOWN: case WM_RBUTTONDOWN: @@ -1192,9 +1195,6 @@ PluginInstanceChild::PluginWindowProc(HWND hWnd, break; } - LRESULT res = CallWindowProc(self->mPluginWndProc, hWnd, message, wParam, - lParam); - if (message == WM_CLOSE) self->DestroyPluginWindow(); -- 2.11.4.GIT