mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 572417 - Reset mouse capture when entering full screen mode in flash. r=bsmedberg, a=betaN.
This commit is contained in:
parent
1622edb601
commit
4398c466c9
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user