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 )