Bug 572417 - Reset mouse capture when entering full screen mode in flash. r=bsmedberg, a=betaN.

This commit is contained in:
Jim Mathies 2010-10-07 02:03:18 -05:00
parent 1622edb601
commit 4398c466c9

View File

@ -1181,6 +1181,19 @@ PluginInstanceChild::PluginWindowProc(HWND hWnd,
return 0;
}
// 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) {
case WM_LBUTTONUP:
case WM_MBUTTONUP:
case WM_RBUTTONUP:
ReleaseCapture();
break;
}
LRESULT res = CallWindowProc(self->mPluginWndProc, hWnd, message, wParam,
lParam);