diff options
author | 2016-12-15 15:51:13 +0900 | |
---|---|---|
committer | 2016-12-15 16:02:41 +0900 | |
commit | a8414c772521b330d950dedc7f5b25f8ebff6e23 (patch) | |
tree | 1b92baa20f5586cbf5b13b1975683aa648edde9b /WindowManager/src | |
parent | a4f5c7d97fcbb97ece05cfbca38fb1963ab11377 (diff) |
Fix management of screen
WindowManager can support signle screen only, so far.
CAUTION:
To apply this change for porter board, LVDS-1 output
should be disabled first. (see Changes 7637 for detail)
https://gerrit.automotivelinux.org/gerrit/#/c/7637/
Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
Diffstat (limited to 'WindowManager/src')
-rw-r--r-- | WindowManager/src/windowmanager.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/WindowManager/src/windowmanager.cpp b/WindowManager/src/windowmanager.cpp index c3080ff..84f467d 100644 --- a/WindowManager/src/windowmanager.cpp +++ b/WindowManager/src/windowmanager.cpp @@ -353,8 +353,7 @@ void WindowManager::updateScreen() // display layer render order t_ilm_layer renderOrder[WINDOWMANAGER_LAYER_NUM]; int num_layers = getLayerRenderOrder(renderOrder); - ilm_displaySetRenderOrder(0, renderOrder, num_layers); - ilm_displaySetRenderOrder(1, renderOrder, num_layers); + ilm_displaySetRenderOrder(m_screenId, renderOrder, num_layers); ilm_commitChanges(); } } @@ -449,6 +448,7 @@ void WindowManager::surfaceCallbackFunction_non_static(t_ilm_surface surface, { qDebug("ILM_NOTIFICATION_CONTENT_AVAILABLE"); /* add surface to layer for the application */ + ilmErrorTypes result; pid_t pid = surfaceProperties->creatorPid; @@ -689,8 +689,7 @@ void WindowManager::hideLayer(int layer) t_ilm_layer renderOrder[WINDOWMANAGER_LAYER_NUM]; int num_layers = getLayerRenderOrder(renderOrder); - ilm_displaySetRenderOrder(0, renderOrder, num_layers); - ilm_displaySetRenderOrder(1, renderOrder, num_layers); + ilm_displaySetRenderOrder(m_screenId, renderOrder, num_layers); ilm_commitChanges(); } #endif @@ -768,8 +767,7 @@ void WindowManager::showLayer(int layer) t_ilm_layer renderOrder[WINDOWMANAGER_LAYER_NUM]; int num_layers = getLayerRenderOrder(renderOrder); - ilm_displaySetRenderOrder(0, renderOrder, num_layers); - ilm_displaySetRenderOrder(1, renderOrder, num_layers); + ilm_displaySetRenderOrder(m_screenId, renderOrder, num_layers); ilm_commitChanges(); } #endif @@ -806,8 +804,7 @@ void WindowManager::showAppLayer(int pid) t_ilm_layer renderOrder[WINDOWMANAGER_LAYER_NUM]; int num_layers = getLayerRenderOrder(renderOrder); - ilm_displaySetRenderOrder(0, renderOrder, num_layers); - ilm_displaySetRenderOrder(1, renderOrder, num_layers); + ilm_displaySetRenderOrder(m_screenId, renderOrder, num_layers); ilm_commitChanges(); #endif } |