From: Jean-Paul Saman Date: Mon, 12 Mar 2012 13:54:06 +0000 (+0100) Subject: skins2: resize new layout first when switching between layouts. X-Git-Tag: 2.1.0-git~5268 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=ff74e967e9777ed821734077051f55ac84a173a5;p=vlc skins2: resize new layout first when switching between layouts. When switching layouts the windows was resized to the default state at design time. Now the layout being switched to is first resized to the size of the current layout. Switching layouts now nolonger results in the layout being restored to its default size, instead it keeps the size the user inteded it to have. --- diff --git a/modules/gui/skins2/src/top_window.cpp b/modules/gui/skins2/src/top_window.cpp index 8e9973021a..2579c2e9cd 100644 --- a/modules/gui/skins2/src/top_window.cpp +++ b/modules/gui/skins2/src/top_window.cpp @@ -358,6 +358,7 @@ void TopWindow::setActiveLayout( GenericLayout *pLayout ) } // The current layout becomes inactive m_pActiveLayout->getActiveVar().set( false ); + pLayout->resize( m_pActiveLayout->getWidth(), m_pActiveLayout->getHeight() ); } pLayout->setWindow( this );