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

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

parent e6db2c38
...@@ -983,7 +983,26 @@ static int CreateWindow( vout_thread_t *p_vout, x11_window_t *p_win ) ...@@ -983,7 +983,26 @@ static int CreateWindow( vout_thread_t *p_vout, x11_window_t *p_win )
XSetCommand( p_vout->p_sys->p_display, p_win->base_window, XSetCommand( p_vout->p_sys->p_display, p_win->base_window,
p_vout->p_vlc->ppsz_argv, p_vout->p_vlc->i_argc ); p_vout->p_vlc->ppsz_argv, p_vout->p_vlc->i_argc );
XStoreName( p_vout->p_sys->p_display, p_win->base_window, 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 #ifdef MODULE_NAME_IS_x11
VOUT_TITLE " (X11 output)" VOUT_TITLE " (X11 output)"
#elif defined(MODULE_NAME_IS_glx) #elif defined(MODULE_NAME_IS_glx)
...@@ -992,6 +1011,7 @@ static int CreateWindow( vout_thread_t *p_vout, x11_window_t *p_win ) ...@@ -992,6 +1011,7 @@ static int CreateWindow( vout_thread_t *p_vout, x11_window_t *p_win )
VOUT_TITLE " (XVideo output)" VOUT_TITLE " (XVideo output)"
#endif #endif
); );
}
} }
} }
else else
......
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