[vlc-commits] npapi win32: allow switch off fullscreen mode by doubleclicking on drawable .

Sergey Radionov git at videolan.org
Thu Jan 5 03:00:04 CET 2012


npapi-vlc | branch: master | Sergey Radionov <RSATom at gmail.com> | Sun Jan  1 22:22:29 2012 +0700| [9790d053a28f3cb42febb59592632d6a387477ae] | committer: Sergey Radionov

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

When fullscreen window is on another display.

> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=9790d053a28f3cb42febb59592632d6a387477ae
---

 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();



More information about the vlc-commits mailing list