[vlc-devel] [PATCH 4/5] npapi win32: allow switch off fullscreen mode by doubleclicking on drawable.

Sergey Radionov rsatom at gmail.com
Sun Jan 1 17:25:25 CET 2012


When fullscreen window is on another display.
---
 npapi/vlcplugin_win.cpp |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/npapi/vlcplugin_win.cpp b/npapi/vlcplugin_win.cpp
index 671d103..d500551 100644
--- a/npapi/vlcplugin_win.cpp
+++ b/npapi/vlcplugin_win.cpp
@@ -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();
-- 
1.7.7.1.msysgit.0




More information about the vlc-devel mailing list