Fix possible crasher introduced by the new close window feature

svn path=/trunk/KDE/kdebase/workspace/; revision=1181666
This commit is contained in:
Martin Gräßlin 2010-10-01 17:48:04 +00:00
parent 1bee9e378f
commit 7e5d860cc3

View file

@ -492,7 +492,7 @@ void PresentWindowsEffect::windowInputMouseEvent( Window w, QEvent *e )
break;
}
}
if( m_motionManager.transformedGeometry( m_highlightedWindow ).contains( me->pos() ) )
if( m_highlightedWindow && m_motionManager.transformedGeometry( m_highlightedWindow ).contains( me->pos() ) )
updateCloseWindow();
else
m_closeView->hide();