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
This commit is contained in:
parent
707118ca3c
commit
d2fd031544
2 changed files with 9 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue