mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 572417 - Release mouse capture in flash subclass after mouse events get delivered. r=bsmedberg, a=betaN.
This commit is contained in:
parent
8552547c1d
commit
d62ed4ba96
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user