]> git.sesse.net Git - vlc/commitdiff
* modules/gui/skins/x11/x11_window.cpp: avoid flicker when mapping a window.
authorGildas Bazin <gbazin@videolan.org>
Sun, 8 Jun 2003 18:40:10 +0000 (18:40 +0000)
committerGildas Bazin <gbazin@videolan.org>
Sun, 8 Jun 2003 18:40:10 +0000 (18:40 +0000)
* share/skins/default/theme.xml: playlist is hidden by default.

modules/gui/skins/x11/x11_window.cpp
share/skins/default/theme.xml

index 914c2b1213d1c6d184323a008cd757668abb1555..8121a81cb642af812e453256bff897bcec117f95 100644 (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
index 209d94d30c1515a721208d49666dfc98d6710000..4cc7427ad15c8082f6a449c0b082b7dcbc450e63 100644 (file)
     </ControlGroup>\r
   </Window>\r
 \r
-  <Window id="PlaylistWindow" x="200" y="205" alpha="255" fadetime="500" movealpha="192">\r
+  <Window id="PlaylistWindow" x="200" y="205" visible="false" alpha="255" fadetime="500" movealpha="192">\r
     <ControlGroup x="0" y="0">\r
       <Anchor x="0" y="0" priority="50"/>\r
       <ImageControl x="0" y="0" image="playlist_body" onclick="MovePlaylist"/>\r