From 3b5ddddbc3bfe0a073c993dfae3aec424ba12cd4 Mon Sep 17 00:00:00 2001 From: Lucas Murray Date: Sun, 22 Feb 2009 14:03:48 +0000 Subject: [PATCH] SVN_SILENT Fix excessive repainting in EffectFrame. svn path=/trunk/KDE/kdebase/workspace/; revision=929979 --- lib/kwineffects.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/kwineffects.cpp b/lib/kwineffects.cpp index 1754472aa1..05a276a81f 100644 --- a/lib/kwineffects.cpp +++ b/lib/kwineffects.cpp @@ -1555,13 +1555,12 @@ void EffectFrame::setPosition( const QPoint& point ) 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; + if( geometry == m_geometry && !force ) + return; + effects->addRepaint( geometry ); effects->addRepaint( m_geometry ); - if( !newSize && !force ) + if( geometry.size() == m_geometry.size() && !force ) return; if( m_style == Styled )