Don't perform Compositor::setCompositeTimer during startup

The check whether Workspace is created is not sufficient. There's a
time when Workspace is already created but Compositor not ready yet
and where we can hit this code path.
This commit is contained in:
Martin Gräßlin 2015-10-20 11:41:04 +02:00
parent b38999e0a9
commit d24411b9ac

View file

@ -772,7 +772,7 @@ void Compositor::setCompositeTimer()
{
if (!hasScene()) // should not really happen, but there may be e.g. some damage events still pending
return;
if (!Workspace::self()) {
if (m_starting || !Workspace::self()) {
return;
}