From 6317e2ef3aa067a6e25542848279250b64f7cd33 Mon Sep 17 00:00:00 2001 From: Jacopo De Simoi Date: Wed, 11 Nov 2009 23:37:40 +0000 Subject: [PATCH] We still need to add the repaints, but first check if it is indeed the case svn path=/trunk/KDE/kdebase/workspace/; revision=1047737 --- client.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/client.cpp b/client.cpp index e4c53a5e72..6db7e245c7 100644 --- a/client.cpp +++ b/client.cpp @@ -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(); }