Set Workspace::m_compositor to null when Compositor gets destroyed

Fixes regression from 1998d5ac1a.

BUG: 358722
REVIEW: 126925
This commit is contained in:
Martin Gräßlin 2016-01-29 12:59:39 +01:00
parent bd3083e81f
commit fbf14306d7

View file

@ -194,6 +194,7 @@ Workspace::Workspace(const QString &sessionKey)
m_compositor = Compositor::create(this); m_compositor = Compositor::create(this);
} }
connect(this, &Workspace::currentDesktopChanged, m_compositor, &Compositor::addRepaintFull); connect(this, &Workspace::currentDesktopChanged, m_compositor, &Compositor::addRepaintFull);
connect(m_compositor, &QObject::destroyed, this, [this] { m_compositor = nullptr; });
auto decorationBridge = Decoration::DecorationBridge::create(this); auto decorationBridge = Decoration::DecorationBridge::create(this);
decorationBridge->init(); decorationBridge->init();