Set Workspace::m_compositor to null when Compositor gets destroyed
Fixes regression from 1998d5ac1a
.
BUG: 358722
REVIEW: 126925
This commit is contained in:
parent
bd3083e81f
commit
fbf14306d7
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue