]> git.sesse.net Git - vlc/commitdiff
* Fixing Parkinson disease bug (it's not funny, it's real life)
authorEmmanuel Puig <karibu@videolan.org>
Fri, 21 Mar 2003 00:00:19 +0000 (00:00 +0000)
committerEmmanuel Puig <karibu@videolan.org>
Fri, 21 Mar 2003 00:00:19 +0000 (00:00 +0000)
modules/gui/skins/src/theme.cpp

index 490fbb2934218fd8a8e21cf3feae33fd34573a12..8590ef5678074582c4ed4cca288a9dec937c6ce0 100644 (file)
@@ -2,7 +2,7 @@
  * theme.cpp: Theme class
  *****************************************************************************
  * Copyright (C) 2003 VideoLAN
- * $Id: theme.cpp,v 1.3 2003/03/19 18:14:48 karibu Exp $
+ * $Id: theme.cpp,v 1.4 2003/03/21 00:00:19 karibu Exp $
  *
  * Authors: Olivier Teulière <ipkiss@via.ecp.fr>
  *          Emmanuel Puig    <karibu@via.ecp.fr>
@@ -358,7 +358,11 @@ void Theme::HangToAnchors( Window *wnd, int &x, int &y, bool init )
                     {
                         // If parent hang child and child is not still in list
                         if( !(*win_anchor)->IsInList( (*wnd_anchor) ) )
+                        {
+                            if( init )
+                                msg_Err( p_intf, "Add" );
                             (*win_anchor)->Add( (*wnd_anchor) );
+                        }
 
                         // Move window to stick anchor
                         (*wnd_anchor)->GetPos( wnd_anchor_x, wnd_anchor_y );
@@ -398,6 +402,7 @@ void Theme::CheckAnchors()
     {
         (*win)->GetPos( x, y );
         HangToAnchors( (*win), x, y, true );
+        (*win)->Move( x, y );
     }
 }
 //---------------------------------------------------------------------------