X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fvideo_output%2Fmsw%2Fevents.c;h=873321ac4731cda41c0ac5d24c2576ec4bb6dc58;hb=62793494c79cdcdaece4fe3af497de1a851375ee;hp=119680c6f75f0198f0618f09800cddbe75644823;hpb=09af489c23a225c76820aa44cf39759dd86efd22;p=vlc diff --git a/modules/video_output/msw/events.c b/modules/video_output/msw/events.c index 119680c6f7..873321ac47 100644 --- a/modules/video_output/msw/events.c +++ b/modules/video_output/msw/events.c @@ -1075,8 +1075,6 @@ static int Control( vout_thread_t *p_vout, int i_query, va_list args ) return VLC_SUCCESS; - case VOUT_CLOSE: - ShowWindow( p_vout->p_sys->hwnd, SW_HIDE ); case VOUT_REPARENT: /* Retrieve the window position */ point.x = point.y = 0; @@ -1094,8 +1092,7 @@ static int Control( vout_thread_t *p_vout, int i_query, va_list args ) p_vout->p_sys->i_window_style = WS_CLIPCHILDREN | WS_OVERLAPPEDWINDOW | WS_SIZEBOX; SetWindowLong( p_vout->p_sys->hwnd, GWL_STYLE, - p_vout->p_sys->i_window_style | - (i_query == VOUT_CLOSE ? 0 : WS_VISIBLE) ); + p_vout->p_sys->i_window_style | WS_VISIBLE); SetWindowLong( p_vout->p_sys->hwnd, GWL_EXSTYLE, WS_EX_APPWINDOW ); SetWindowPos( p_vout->p_sys->hwnd, 0, point.x, point.y, 0, 0, SWP_NOSIZE|SWP_NOZORDER|SWP_FRAMECHANGED ); @@ -1109,8 +1106,7 @@ static int Control( vout_thread_t *p_vout, int i_query, va_list args ) SetParent( p_vout->p_sys->hwnd, d ); p_vout->p_sys->i_window_style = WS_CLIPCHILDREN; SetWindowLong( p_vout->p_sys->hwnd, GWL_STYLE, - p_vout->p_sys->i_window_style | - (i_query == VOUT_CLOSE ? 0 : WS_VISIBLE) ); + p_vout->p_sys->i_window_style | WS_VISIBLE); SetWindowLong( p_vout->p_sys->hwnd, GWL_EXSTYLE, WS_EX_APPWINDOW ); /* Retrieve the parent size */ @@ -1130,17 +1126,8 @@ static int Control( vout_thread_t *p_vout, int i_query, va_list args ) p_vout->p_sys->b_on_top_change = true; return VLC_SUCCESS; -#ifdef MODULE_NAME_IS_wingapi - case VOUT_SET_FOCUS: - b_bool = (bool) va_arg( args, int ); - p_vout->p_sys->b_parent_focus = b_bool; - if( b_bool ) GXResume(); - else if( !p_vout->p_sys->b_focus ) GXSuspend(); - return VLC_SUCCESS; -#endif - default: - return vout_vaControlDefault( p_vout, i_query, args ); + return VLC_EGENERIC; } }