]> git.sesse.net Git - vlc/commitdiff
skins2(Win32): fix second bug of #685
authorErwan Tulou <erwan10@videolan.org>
Wed, 24 Feb 2010 13:16:57 +0000 (14:16 +0100)
committerErwan Tulou <erwan10@videolan.org>
Wed, 24 Feb 2010 13:45:52 +0000 (14:45 +0100)
On Windows, skins with on top set were still visible in fullscreen mode

This patch makes fullscreen also a topmost window.

modules/gui/skins2/win32/win32_window.cpp

index 8603a6b3f88a1c299198b3f7b998d071810a1844..a26bc6599cb50068946bafa50071e0e0c51c867c 100644 (file)
@@ -140,11 +140,18 @@ void Win32Window::reparent( void* OSHandle, int x, int y, int w, int h )
 void Win32Window::show() const
 {
 
-   if( m_type == GenericWindow::VoutWindow )
-       SetWindowPos( m_hWnd, HWND_BOTTOM, 0, 0, 0, 0,
-            SWP_NOMOVE | SWP_NOSIZE );
+    if( m_type == GenericWindow::VoutWindow )
+    {
+        SetWindowPos( m_hWnd, HWND_BOTTOM, 0, 0, 0, 0,
+                              SWP_NOMOVE | SWP_NOSIZE );
+    }
+    else if( m_type == GenericWindow::FullscreenWindow )
+    {
+        SetWindowPos( m_hWnd, HWND_TOPMOST, 0, 0, 0, 0,
+                              SWP_NOMOVE | SWP_NOSIZE );
+    }
 
-   ShowWindow( m_hWnd, SW_SHOW );
+    ShowWindow( m_hWnd, SW_SHOW );
 }