Sync r899162 from Oxygen.

svn path=/trunk/KDE/kdebase/workspace/; revision=904800
This commit is contained in:
Lucas Murray 2009-01-03 07:59:16 +00:00
parent 65796cc45e
commit e2e7b64443

View file

@ -51,6 +51,7 @@
#include <QPainterPath> #include <QPainterPath>
#include <QTimer> #include <QTimer>
#include <QCache> #include <QCache>
#include <QtGui/QApplication>
#include "math.h" #include "math.h"
@ -70,6 +71,12 @@ OxygenHelper *oxygenHelper()
return globalHelper; return globalHelper;
} }
static void oxkwincleanupBefore()
{
OxygenHelper *h = globalHelper;
h->invalidateCaches();
}
void renderDot(QPainter *p, const QPointF &point, qreal diameter) void renderDot(QPainter *p, const QPointF &point, qreal diameter)
{ {
p->drawEllipse(QRectF(point.x()-diameter/2, point.y()-diameter/2, diameter, diameter)); p->drawEllipse(QRectF(point.x()-diameter/2, point.y()-diameter/2, diameter, diameter));
@ -81,6 +88,7 @@ OxygenClient::OxygenClient(KDecorationBridge *b, KDecorationFactory *f)
, colorCacheInvalid_(true) , colorCacheInvalid_(true)
, helper_(*globalHelper) , helper_(*globalHelper)
{ {
qAddPostRoutine(oxkwincleanupBefore);
} }
OxygenClient::~OxygenClient() OxygenClient::~OxygenClient()