[vlc] Re: VLC window X11/Gnome
Dermot McGahon
dermot at dspsrv.com
Sun Mar 13 14:09:01 CET 2005
On Tue, 15 Feb 2005 09:43:24 +0100, Benjamin PRACHT
<bigben+spam at videolan.org> wrote:
> On Mon, Feb 14, 2005, Philippe DE PECHY wrote :
>> Dear Sir or Madam,
>> I'd like to display a video on a Linux/X11/Gnome computer in a non-full
>> screen VLC window without any border (I need the video and only the
>> video).
>> Is it possible?
>> Thanks a lot
>> Regards
>>
>>
>
> Well, first, disable embedded video in the proprieties of the wxwindows
> plungin in the preferences. Then, you can remove borders and decorations
> of the video window, by using an appropriate windows manager (such as
> sawfish, I don't think metacity can do that), taht will allow to choose
> the decoration type on a application basis.
You can do it with metacity using an application called devilspie.
It can also be done by hacking modules/video_output/x11/xcommon.c:
/* Set window manager hints and properties: size hints,
command,
* window's name, and accepted protocols */
XSetWMNormalHints( p_vout->p_sys->p_display,
p_win->base_window, &xsize_hints );
XSetCommand( p_vout->p_sys->p_display, p_win->base_window,
p_vout->p_vlc->ppsz_argv, p_vout->p_vlc->i_argc );
// hack to remove window decorations in windowed mode
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 );
Dermot.
--
--
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html
More information about the vlc
mailing list