mirror of
https://github.com/videolan/vlc.git
synced 2024-12-14 04:04:45 +08:00
* 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:
parent
6f4f1981ba
commit
d894e24173
@ -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"/>
|
||||
|
Loading…
Reference in New Issue
Block a user