Bug 572417 - Release mouse capture in flash subclass after mouse events get delivered. r=bsmedberg, a=betaN.

This commit is contained in:
Jim Mathies 2010-12-20 08:45:59 -06:00
parent 8552547c1d
commit d62ed4ba96

View File

@ -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();