We still need to add the repaints, but first check if it is indeed the case

svn path=/trunk/KDE/kdebase/workspace/; revision=1047737
This commit is contained in:
Jacopo De Simoi 2009-11-11 23:37:40 +00:00
parent f08d982b15
commit 6317e2ef3a

View file

@ -458,7 +458,15 @@ QRegion Client::decorationPendingRegion() const
void Client::repaintDecorationPending()
{
if (!compositing())
if (compositing())
{
// The scene will update the decoration pixmaps in the next painting pass
// if it has not been already repainted before
const QRegion r = paintRedirector->pendingRegion();
if (!r.isEmpty())
Workspace::self()->addRepaint( r.translated( x() - padding_left, y() - padding_top ) );
}
else
ensureDecorationPixmapsPainted();
}