surface->renderPropertyChanged = true;
graphicSystem->getTextureBinder()->createClientBuffer(surface);
+ x11surf->enableRendering();
XSync(x11Display, 0);
LOG_DEBUG("X11WindowSystem", "Mapping Surface " << surface->getID() << " to window " << window);
if (isWindowValid(window))
{
LOG_DEBUG("X11WindowSystem", "Unmapping surface from window " << window);
- Surface* surface = getSurfaceForWindow(window);
+ Surface* surface = getSurfaceForWindow(window);
if (!surface)
{
LOG_WARNING("X11WindowSystem", "Could not unmap window " << window);
return;
}
XPlatformSurface* x11surf = (XPlatformSurface*)surface->platform;
+ x11surf->disableRendering();
LOG_DEBUG("X11WindowSystem", "Unmapping surface " << surface->getID());
if (!x11surf->isMapped)
{
if (isWindowValid(window))
{
LOG_DEBUG("X11WindowSystem", "Destroying Surface for window " << window);
- Surface* surface = getSurfaceForWindow(window);
+ Surface* surface = getSurfaceForWindow(window);
if (!surface)
{
LOG_WARNING("X11WindowSystem", "Could not find surface for window " << window);
UnMapWindow(window);
LOG_DEBUG("X11WindowSystem", "Remove Native Content from Surface " << surface->getID());
surface->removeNativeContent();
+ /* To force a recomposition of all surface which are behind of that surface inside the Layer RenderOrder */
+ surface->renderPropertyChanged = true;
delete surface->platform;
surface->platform = NULL;
}