diff options
Diffstat (limited to 'HomeScreen/src/layouthandler.cpp')
-rw-r--r-- | HomeScreen/src/layouthandler.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/HomeScreen/src/layouthandler.cpp b/HomeScreen/src/layouthandler.cpp index 5f52cd5..35304e6 100644 --- a/HomeScreen/src/layouthandler.cpp +++ b/HomeScreen/src/layouthandler.cpp @@ -175,6 +175,33 @@ void LayoutHandler::makeMeVisible(int pid) } } +QList<int> LayoutHandler::requestGetAllSurfacesOfProcess(int pid) +{ + qDebug("requestGetAllSurfacesOfProcess %d", pid); + + return mp_dBusWindowManagerProxy->getAllSurfacesOfProcess(pid); +} + +int LayoutHandler::requestGetSurfaceStatus(int surfaceId) +{ + int result = -1; + + if (-1 != m_visibleSurfaces.indexOf(surfaceId)) + { + result = 0; + } + if (-1 != m_invisibleSurfaces.indexOf(surfaceId)) + { + result = 1; + } + if (-1 != m_requestsToBeVisibleSurfaces.indexOf(surfaceId)) + { + result = 1; + } + + return result; +} + void LayoutHandler::requestRenderSurfaceToArea(int surfaceId, const QRect &renderArea) { qDebug("requestRenderSurfaceToArea %d %d,%d,%d,%d", surfaceId, renderArea.x(), renderArea.y(), renderArea.width(), renderArea.height()); |