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