* modules/video_output/directx/directx.c: couple of fixes for fullscreen.
authorGildas Bazin <gbazin@videolan.org>
Fri, 23 Apr 2004 14:39:57 +0000 (14:39 +0000)
committerGildas Bazin <gbazin@videolan.org>
Fri, 23 Apr 2004 14:39:57 +0000 (14:39 +0000)
modules/video_output/directx/directx.c

index bc1b258..7386e5c 100644 (file)
@@ -445,7 +445,7 @@ static int Manage( vout_thread_t *p_vout )
     /* If we do not control our window, we check for geometry changes
      * ourselves because the parent might not send us its events. */
     vlc_mutex_lock( &p_vout->p_sys->lock );
-    if( p_vout->p_sys->hparent )
+    if( p_vout->p_sys->hparent && !p_vout->b_fullscreen )
     {
         RECT rect_parent;
         POINT point;
@@ -517,7 +517,10 @@ static int Manage( vout_thread_t *p_vout )
         if( p_vout->b_fullscreen )
         {
            if( p_vout->p_sys->hparent )
+           {
                SetParent( p_vout->p_sys->hwnd, GetDesktopWindow() );
+               SetForegroundWindow( p_vout->p_sys->hwnd );
+           }
 
             /* Maximized window */
             window_placement.showCmd = SW_SHOWMAXIMIZED;