Fixed compositing state #14

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

@ -8,10 +8,11 @@ WindowSystem::WindowSystem(QObject *parent) :
QObject(parent)
{
if (KWindowSystem::isPlatformWayland()) {
//! TODO: Wayland compositing active
} else {
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()
{
static WindowSystem ws;
return ws;
}

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

Loading…
Cancel
Save