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;
/*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*/
return 0;
// Opera does not call NPP_SetWindow on window destruction...
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