Commit 36558eb5 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Pass full window state to window providers

parent 2c077cc0
......@@ -614,7 +614,7 @@ int CommonControl(vout_display_t *vd, int query, va_list args)
return VLC_EGENERIC;
#endif
if (sys->parent_window) {
if (vout_window_SetState(sys->parent_window, is_on_top))
if (vout_window_SetState(sys->parent_window, state))
return VLC_EGENERIC;
} else {
HMENU hMenu = GetSystemMenu(sys->hwnd, FALSE);
......
......@@ -471,8 +471,7 @@ static int Control (vout_display_t *vd, int query, va_list ap)
case VOUT_DISPLAY_CHANGE_WINDOW_STATE:
{
unsigned state = va_arg (ap, unsigned);
bool b_on_top = (state & VOUT_WINDOW_STATE_ABOVE) != 0;
return vout_window_SetState (sys->embed, b_on_top);
return vout_window_SetState (sys->embed, state);
}
case VOUT_DISPLAY_CHANGE_DISPLAY_SIZE:
......
......@@ -469,8 +469,7 @@ static int Control (vout_display_t *vd, int query, va_list ap)
case VOUT_DISPLAY_CHANGE_WINDOW_STATE:
{
unsigned state = va_arg (ap, unsigned);
bool b_on_top = (state & VOUT_WINDOW_STATE_ABOVE) != 0;
return vout_window_SetState (p_sys->embed, b_on_top);
return vout_window_SetState (p_sys->embed, state);
}
case VOUT_DISPLAY_CHANGE_ZOOM:
......
......@@ -739,8 +739,7 @@ static int Control (vout_display_t *vd, int query, va_list ap)
case VOUT_DISPLAY_CHANGE_WINDOW_STATE:
{
unsigned state = va_arg (ap, unsigned);
bool b_on_top = (state & VOUT_WINDOW_STATE_ABOVE) != 0;
return vout_window_SetState (p_sys->embed, b_on_top);
return vout_window_SetState (p_sys->embed, state);
}
/* Hide the mouse. It will be send when
......
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