SVN_SILENT Fix excessive repainting in EffectFrame.
svn path=/trunk/KDE/kdebase/workspace/; revision=929979
This commit is contained in:
parent
1e91a66fd2
commit
3b5ddddbc3
1 changed files with 4 additions and 5 deletions
|
@ -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 )
|
||||||
|
|
Loading…
Reference in a new issue