From 1c45f2a2d83ffafc9e06ca4d3b261e3c92a70f23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 22 Apr 2009 19:00:51 +0000 Subject: [PATCH] Forgot to add the changes to client for argb decoration (rev 957681) svn path=/trunk/KDE/kdebase/workspace/; revision=957718 --- client.cpp | 8 ++++++++ client.h | 1 + 2 files changed, 9 insertions(+) diff --git a/client.cpp b/client.cpp index 169cccdf8c..f022086db6 100644 --- a/client.cpp +++ b/client.cpp @@ -419,6 +419,14 @@ void Client::repaintDecorationPending() ensureDecorationPixmapsPainted(); } +bool Client::decorationPixmapRequiresRepaint() + { + if (!paintRedirector) + return false; + QRegion r = paintRedirector->pendingRegion(); + return !r.isEmpty(); + } + void Client::ensureDecorationPixmapsPainted() { if (!paintRedirector) diff --git a/client.h b/client.h index a725623548..773db2d58b 100644 --- a/client.h +++ b/client.h @@ -310,6 +310,7 @@ class Client const QPixmap *bottomDecoPixmap() const { return &decorationPixmapBottom; } const QPixmap *rightDecoPixmap() const { return &decorationPixmapRight; } + bool decorationPixmapRequiresRepaint(); void ensureDecorationPixmapsPainted(); private slots: