Prevent crashing when a window is closed.

CCMAIL: <lmurray@undefinedfire.com>

svn path=/trunk/KDE/kdebase/workspace/; revision=863593
icc-effect-5.14.5
Martin Gräßlin 2008-09-22 16:13:20 +00:00
parent 0da2ce5a2e
commit e353af4844
1 changed files with 2 additions and 0 deletions

View File

@ -151,6 +151,8 @@ void PresentWindowsEffect::postPaintScreen()
// Update windows that are changing brightness or opacity
foreach( EffectWindow *w, m_windowData.keys() )
{
if( !w )
continue;
if( m_windowData[w].opacity > 0.0 && m_windowData[w].opacity < 1.0 )
w->addRepaintFull();
if( m_windowData[w].highlight > 0.0 && m_windowData[w].highlight < 1.0 )