Commit d894e241 authored by Gildas Bazin's avatar Gildas Bazin

* modules/gui/skins/x11/x11_window.cpp: avoid flicker when mapping a window.
* share/skins/default/theme.xml: playlist is hidden by default.
parent 6f4f1981
......@@ -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
......
......@@ -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"/>
......
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