Commit f5683626 authored by Sergey Radionov's avatar Sergey Radionov Committed by Jean-Baptiste Kempf

npapi win32: call destroy_windows on drawable destroying (opera compatibility fix)

parent 70dc01b1
......@@ -56,6 +56,13 @@ LRESULT CALLBACK VlcPluginWin::NPWndProcR(HWND hWnd, UINT uMsg, WPARAM wParam, L
if( ud ) {
VlcPluginWin *p_plugin = reinterpret_cast<VlcPluginWin *>(ud);
switch( uMsg ){
case WM_DESTROY:
// Opera does not call NPP_SetWindow on window destruction...
p_plugin->destroy_windows();
break;
}
/* delegate to default handler */
return CallWindowProc( p_plugin->_NPWndProc, hWnd,
uMsg, wParam, lParam);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment