Commit 9790d053 authored by Sergey Radionov's avatar Sergey Radionov

npapi win32: allow switch off fullscreen mode by doubleclicking on drawable.

When fullscreen window is on another display.
parent d9aa24dc
......@@ -62,6 +62,15 @@ LRESULT CALLBACK VlcPluginWin::NPWndProcR(HWND hWnd, UINT uMsg, WPARAM wParam, L
GetClientRect(hWnd, &rect);
FillRect((HDC)wParam, &rect, (HBRUSH) (COLOR_WINDOW+1));
return 1;
case WM_LBUTTONDBLCLK:
/*if we get WM_LBUTTONDBLCLK here,
* it mean that fullscreen mode is on,
* and fullscreen window is on another display.
* So user can see browser window and
* plugin drawable (i.e. this) window,
* and might want switch fullscreen off*/
p_plugin->set_fullscreen(false);
return 0;
case WM_DESTROY:
// Opera does not call NPP_SetWindow on window destruction...
p_plugin->destroy_windows();
......
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