HomeScreen is now visible independent of the Layout set.
authorBocklage, Jens <Jens_Bocklage@mentor.com>
Thu, 3 Nov 2016 12:47:46 +0000 (13:47 +0100)
committerBocklage, Jens <Jens_Bocklage@mentor.com>
Thu, 3 Nov 2016 12:47:46 +0000 (13:47 +0100)
Signed-off-by: Bocklage, Jens <Jens_Bocklage@mentor.com>
WindowManager/src/windowmanager.cpp

index e4d5610..26d650f 100644 (file)
@@ -147,6 +147,11 @@ void WindowManager::addSurfaceToLayer(int surfaceId, int layerId)
         struct ilmSurfaceProperties surfaceProperties;
         ilm_getPropertiesOfSurface(surfaceId, &surfaceProperties);
 
         struct ilmSurfaceProperties surfaceProperties;
         ilm_getPropertiesOfSurface(surfaceId, &surfaceProperties);
 
+        qDebug("sourceX %d", surfaceProperties.sourceX);
+        qDebug("sourceY %d", surfaceProperties.sourceY);
+        qDebug("sourceWidth %d", surfaceProperties.sourceWidth);
+        qDebug("sourceHeight %d", surfaceProperties.sourceHeight);
+
         // homescreen app always fullscreen in the back
         t_ilm_uint screenID = 0;
         t_ilm_uint width;
         // homescreen app always fullscreen in the back
         t_ilm_uint screenID = 0;
         t_ilm_uint width;
@@ -197,14 +202,9 @@ void WindowManager::updateScreen()
 {
     qDebug("-=[updateScreen]=-");
 
 {
     qDebug("-=[updateScreen]=-");
 
+#ifdef __arm__
     if (-1 != m_currentLayout)
     {
     if (-1 != m_currentLayout)
     {
-#ifdef __arm__
-
-        t_ilm_layer renderOrder[WINDOWMANAGER_LAYER_NUM];
-        renderOrder[0] = WINDOWMANAGER_LAYER_HOMESCREEN;
-        renderOrder[1] = WINDOWMANAGER_LAYER_APPLICATIONS;
-        renderOrder[2] = WINDOWMANAGER_LAYER_POPUP;
 
         // hide all surfaces
         for (int i = 0; i < m_surfaces.size(); ++i)
 
         // hide all surfaces
         for (int i = 0; i < m_surfaces.size(); ++i)
@@ -249,11 +249,19 @@ void WindowManager::updateScreen()
                                              currentLayout.layoutAreas[j].height);
         }
 
                                              currentLayout.layoutAreas[j].height);
         }
 
-        ilm_displaySetRenderOrder(0, renderOrder, WINDOWMANAGER_LAYER_NUM);
-
         ilm_commitChanges();
         ilm_commitChanges();
-#endif
     }
     }
+
+    t_ilm_layer renderOrder[WINDOWMANAGER_LAYER_NUM];
+    renderOrder[0] = WINDOWMANAGER_LAYER_HOMESCREEN;
+    renderOrder[1] = WINDOWMANAGER_LAYER_APPLICATIONS;
+    renderOrder[2] = WINDOWMANAGER_LAYER_POPUP;
+
+    ilm_displaySetRenderOrder(0, renderOrder, WINDOWMANAGER_LAYER_NUM);
+
+    ilm_commitChanges();
+
+#endif
 }
 
 #ifdef __arm__
 }
 
 #ifdef __arm__