Introducing check to enable rendering dependent on the content state.
[profile/ivi/layer-management.git] / LayerManagerPlugins / Renderers / Graphic / src / WindowSystems / X11WindowSystem.cpp
index 37e7806..f77ee2b 100644 (file)
@@ -805,6 +805,13 @@ init_complete:
                     {
                         LOG_WARNING("X11WindowSystem", "Surface empty during damage notification");
                         break;
+                    } else {
+                        if (currentSurface->platform != NULL) 
+                        {
+                            /* Enable Rendering for Surface, after damage Notification was send successfully */
+                            /* This will ensure, that the content is not dirty */
+                            ((XPlatformSurface *)(currentSurface->platform))->enableRendering();
+                        }
                     }
                     currentSurface->damaged = true;
                     checkRedraw = true;