]> git.sesse.net Git - vlc/commitdiff
skins2: retain width/height values
authorErwan Tulou <erwan10@videolan.org>
Wed, 13 Jan 2010 09:56:19 +0000 (10:56 +0100)
committerErwan Tulou <erwan10@videolan.org>
Thu, 14 Jan 2010 14:20:48 +0000 (15:20 +0100)
When reparenting, these values must be updated to avoid unnecessary resizing
if the move() method is called.

modules/gui/skins2/src/generic_window.cpp

index 5a666faecb978b65f13658f282876cf16d0d0ec9..2394c46dd69ad8b8e0c9c4ff43d34b87a4aacaf0 100644 (file)
@@ -170,6 +170,10 @@ void* GenericWindow::getOSHandle() const
 
 void GenericWindow::setParent( GenericWindow* pParent, int x, int y, int w, int h )
 {
+    // Update the window size
+    m_width = w;
+    m_height = h;
+
     void* handle = pParent ? pParent->getOSHandle() : NULL;
     m_pOsWindow->reparent( handle, x, y, w, h );
 }