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

svn path=/trunk/KDE/kdebase/workspace/; revision=1047737
icc-effect-5.14.5
Jacopo De Simoi 2009-11-11 23:37:40 +00:00
parent f08d982b15
commit 6317e2ef3a
1 changed files with 9 additions and 1 deletions

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();
}