Only end effect if it is not active any more

BUG: 274550
FIXED-IN: 4.7.0
This commit is contained in:
Martin Gräßlin 2011-06-02 10:08:51 +02:00
parent ae40bce25d
commit 46fdbd26a4

View file

@ -183,7 +183,7 @@ void SnapHelperEffect::postPaintScreen()
XDrawSegments( display(), effects->xrenderBufferPicture(), m_gc, segments, 6 );
}
}*/
} else if (m_window) {
} else if (m_window && !m_active) {
if (m_window->isDeleted())
m_window->unrefWindow();
m_window = NULL;