Fixed compositing state #14

v0.6
audoban 8 years ago
parent 0d670b2c6a
commit 10c26dcf4b

@ -8,10 +8,11 @@ WindowSystem::WindowSystem(QObject *parent) :
QObject(parent) QObject(parent)
{ {
if (KWindowSystem::isPlatformWayland()) { if (KWindowSystem::isPlatformWayland()) {
//! TODO: Wayland compositing active
} else { } else {
compositingChangedProxy(KWindowSystem::self()->compositingActive()); compositingChangedProxy(KWindowSystem::self()->compositingActive());
connect(KWindowSystem::self(), SIGNAL(compositingChanged(bool)), this, SLOT(compositingChanged(bool))); connect(KWindowSystem::self(), &KWindowSystem::compositingChanged
, this, &WindowSystem::compositingChangedProxy);
} }
} }
@ -22,7 +23,6 @@ WindowSystem::~WindowSystem()
WindowSystem &WindowSystem::self() WindowSystem &WindowSystem::self()
{ {
static WindowSystem ws; static WindowSystem ws;
return ws; return ws;
} }

@ -11,7 +11,7 @@ class WindowSystem : public QObject {
Q_PROPERTY(bool compositingActive READ compositingActive NOTIFY compositingChanged) Q_PROPERTY(bool compositingActive READ compositingActive NOTIFY compositingChanged)
public: public:
explicit WindowSystem(QObject *parent = Q_NULLPTR); explicit WindowSystem(QObject *parent = nullptr);
~WindowSystem(); ~WindowSystem();
static WindowSystem &self(); static WindowSystem &self();

Loading…
Cancel
Save