Commit e2e7b644 authored by Lucas Murray's avatar Lucas Murray
Browse files

Sync r899162 from Oxygen.

svn path=/trunk/KDE/kdebase/workspace/; revision=904800
parent 65796cc4
......@@ -51,6 +51,7 @@
#include <QPainterPath>
#include <QTimer>
#include <QCache>
#include <QtGui/QApplication>
#include "math.h"
......@@ -70,6 +71,12 @@ OxygenHelper *oxygenHelper()
return globalHelper;
}
static void oxkwincleanupBefore()
{
OxygenHelper *h = globalHelper;
h->invalidateCaches();
}
void renderDot(QPainter *p, const QPointF &point, qreal 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)
, helper_(*globalHelper)
{
qAddPostRoutine(oxkwincleanupBefore);
}
OxygenClient::~OxygenClient()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment