This command should return a ExecutionSuccessRedraw which will trigger
checkForNewSurface() to map the new surface & window instead of checking
for new surafces durng every call to renderLayer().
LOG_DEBUG("LayerAddSurfaceCommand","add surface(" <<m_surfaceid << ")" << surface->getID() << " to layer(" << m_layerid << ") " << layer->getID());
layer->addSurface(surface);
LOG_DEBUG("LayerAddSurfaceCommand", "Layer now has #surfaces:" << layer->getAllSurfaces().size());
- result = ExecutionSuccess;
+ result = ExecutionSuccessRedraw;
}
return result;
if ((*currentS)->visibility && (*currentS)->opacity>0.0f)
{
Surface* currentSurface = (Surface*)*currentS;
- m_baseWindowSystem->allocatePlatformSurface(currentSurface);
renderSurface(currentSurface);
}
}