Try to do the same fix for kwin

Please svn up and test this out

CCBUG:163538

svn path=/trunk/KDE/kdebase/workspace/; revision=899162
icc-effect-5.14.5
Casper Boemann 2008-12-20 04:39:14 +00:00
parent 707118ca3c
commit d2fd031544
2 changed files with 9 additions and 1 deletions

View File

@ -52,7 +52,7 @@ public:
~OxygenButton();
QSize sizeHint() const;
const int lastMousePress(){return lastmouse_;}
int lastMousePress(){return lastmouse_;}
void reset(long unsigned int){repaint();}
protected:

View File

@ -51,6 +51,7 @@
#include <QPainterPath>
#include <QTimer>
#include <QCache>
#include <QtGui/QApplication>
#include "math.h"
@ -68,6 +69,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));
@ -79,6 +86,7 @@ OxygenClient::OxygenClient(KDecorationBridge *b, KDecorationFactory *f)
, colorCacheInvalid_(true)
, helper_(*globalHelper)
{
qAddPostRoutine(oxkwincleanupBefore);
}
OxygenClient::~OxygenClient()