Commit d8355da2 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* no-deco patch for X11. Courtesy of Dermot McGahon

parent e6db2c38
......@@ -983,6 +983,25 @@ static int CreateWindow( vout_thread_t *p_vout, x11_window_t *p_win )
XSetCommand( p_vout->p_sys->p_display, p_win->base_window,
p_vout->p_vlc->ppsz_argv, p_vout->p_vlc->i_argc );
if( !var_GetBool( p_vout, "video-deco") )
{
Atom prop;
mwmhints_t mwmhints;
mwmhints.flags = MWM_HINTS_DECORATIONS;
mwmhints.decorations = False;
prop = XInternAtom( p_vout->p_sys->p_display, "_MOTIF_WM_HINTS",
False );
XChangeProperty( p_vout->p_sys->p_display,
p_win->base_window,
prop, prop, 32, PropModeReplace,
(unsigned char *)&mwmhints,
PROP_MWM_HINTS_ELEMENTS );
}
else
{
XStoreName( p_vout->p_sys->p_display, p_win->base_window,
#ifdef MODULE_NAME_IS_x11
VOUT_TITLE " (X11 output)"
......@@ -994,6 +1013,7 @@ static int CreateWindow( vout_thread_t *p_vout, x11_window_t *p_win )
);
}
}
}
else
{
Window dummy1;
......
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