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
Родитель 7d7364f317
Коммит fff11e0231
1 изменённых файлов: 13 добавлений и 0 удалений

Просмотреть файл

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