[wayland] Reset ShellClient::m_unmapped before calling setReadyForPainting

m_unmapped determines whether the ShellClient wantsInput. This is used by
the ScriptingModel to check whether a ShellClient should be included. It
gets triggered by windowShonw signal called from setReadyFromPainting. If
m_unmapped is still true at that point the ScriptingModel doesn't include
it.
This commit is contained in:
Martin Gräßlin 2015-06-10 20:31:41 +02:00
parent 93c88aa446
commit ad80e31e6a

View file

@ -188,9 +188,9 @@ void ShellClient::addDamage(const QRegion &damage)
}
setGeometry(QRect(position, m_clientSize));
}
m_unmapped = false;
setDepth(m_shellSurface->surface()->buffer()->hasAlphaChannel() ? 32 : 24);
setReadyForPainting();
m_unmapped = false;
Toplevel::addDamage(damage);
}