* modules/gui/skins/x11/x11_window.cpp: avoid flicker when mapping a window.

* share/skins/default/theme.xml: playlist is hidden by default.
This commit is contained in:
Gildas Bazin 2003-06-08 18:40:10 +00:00
parent 6f4f1981ba
commit d894e24173
2 changed files with 5 additions and 3 deletions

View File

@ -2,7 +2,7 @@
* x11_window.cpp: X11 implementation of the Window class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: x11_window.cpp,v 1.16 2003/06/08 18:17:50 asmax Exp $
* $Id: x11_window.cpp,v 1.17 2003/06/08 18:40:10 gbazin Exp $
*
* Authors: Cyril Deguet <asmax@videolan.org>
*
@ -160,6 +160,8 @@ X11Window::~X11Window()
//---------------------------------------------------------------------------
void X11Window::OSShow( bool show )
{
XResizeWindow( display, Wnd, 1, 1 ); // Avoid flicker
if( show )
{
// We do the call to XShapeCombineRegion() here because the window
@ -213,7 +215,7 @@ void X11Window::OSShow( bool show )
}
XMapWindow( display, Wnd );
XMoveWindow( display, Wnd, Left, Top );
XMoveResizeWindow( display, Wnd, Left, Top, Width, Height );
XUNLOCK;
}
else

View File

@ -132,7 +132,7 @@
</ControlGroup>
</Window>
<Window id="PlaylistWindow" x="200" y="205" alpha="255" fadetime="500" movealpha="192">
<Window id="PlaylistWindow" x="200" y="205" visible="false" alpha="255" fadetime="500" movealpha="192">
<ControlGroup x="0" y="0">
<Anchor x="0" y="0" priority="50"/>
<ImageControl x="0" y="0" image="playlist_body" onclick="MovePlaylist"/>