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:
parent
f08d982b15
commit
6317e2ef3a
1 changed files with 9 additions and 1 deletions
10
client.cpp
10
client.cpp
|
@ -458,7 +458,15 @@ QRegion Client::decorationPendingRegion() const
|
||||||
|
|
||||||
void Client::repaintDecorationPending()
|
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();
|
ensureDecorationPixmapsPainted();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue