Fixed compositing state #14

pull/1/head
Johan Smith Agudelo Rodriguez 8 years ago
parent 8b58b5f1fe
commit 8b1194a3d4

@ -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