diff --git a/composite.cpp b/composite.cpp index a448ec5738..f0d41aed35 100644 --- a/composite.cpp +++ b/composite.cpp @@ -744,6 +744,9 @@ void Compositor::setCompositeTimer() { if (!hasScene()) // should not really happen, but there may be e.g. some damage events still pending return; + if (!Workspace::self()) { + return; + } // Don't start the timer if we're waiting for a swap event if (m_bufferSwapPending && m_composeAtSwapCompletion)