Commit a131a15d authored by Gildas Bazin's avatar Gildas Bazin

* modules/video_output/directx: should solve the visible taskbar problem in fullscreen.

parent 764aab71
......@@ -593,20 +593,22 @@ static int Manage( vout_thread_t *p_vout )
PostMessage( p_vout->p_sys->hwnd, WM_VLC_SHOW_MOUSE, 0, 0 );
}
if( p_vout->p_sys->hparent )
{
ShowWindow( p_vout->p_sys->hwnd, SW_HIDE );
SetWindowLong( p_vout->p_sys->hwnd, GWL_EXSTYLE,
!p_vout->b_fullscreen ?
WS_EX_NOPARENTNOTIFY | WS_EX_TOOLWINDOW :
WS_EX_NOPARENTNOTIFY );
ShowWindow( p_vout->p_sys->hwnd, SW_SHOW );
}
/* Change window style, borders and title bar */
SetWindowLong( p_vout->p_sys->hwnd, GWL_STYLE, i_style );
SetWindowPlacement( p_vout->p_sys->hwnd, &window_placement );
SetWindowPos( p_vout->p_sys->hwnd, 0, 0, 0, 0, 0,
SWP_NOMOVE|SWP_NOSIZE|SWP_NOZORDER|SWP_FRAMECHANGED );
if( p_vout->p_sys->hparent )
{
ShowWindow( p_vout->p_sys->hwnd, SW_HIDE );
SetWindowLong( p_vout->p_sys->hwnd, GWL_EXSTYLE,
p_vout->b_fullscreen ? 0 : WS_EX_TOOLWINDOW );
ShowWindow( p_vout->p_sys->hwnd, SW_SHOW );
}
/* Update the object variable and trigger callback */
val.b_bool = p_vout->b_fullscreen;
var_Set( p_vout, "fullscreen", val );
......
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