SVN_SILENT Fix excessive repainting in EffectFrame.

svn path=/trunk/KDE/kdebase/workspace/; revision=929979
This commit is contained in:
Lucas Murray 2009-02-22 14:03:48 +00:00
parent 1e91a66fd2
commit 3b5ddddbc3

View file

@ -1555,13 +1555,12 @@ void EffectFrame::setPosition( const QPoint& point )
void EffectFrame::setGeometry( const QRect& geometry, bool force ) void EffectFrame::setGeometry( const QRect& geometry, bool force )
{ {
bool newSize = false;
if( geometry.size() != m_geometry.size() )
newSize = true;
effects->addRepaint( m_geometry );
m_geometry = geometry; m_geometry = geometry;
if( geometry == m_geometry && !force )
return;
effects->addRepaint( geometry );
effects->addRepaint( m_geometry ); effects->addRepaint( m_geometry );
if( !newSize && !force ) if( geometry.size() == m_geometry.size() && !force )
return; return;
if( m_style == Styled ) if( m_style == Styled )