diff options
author | 2016-11-04 17:23:02 +0100 | |
---|---|---|
committer | 2016-11-04 17:23:02 +0100 | |
commit | bf0f33bec5ad705666dff6c821334524c1b81583 (patch) | |
tree | c9544663e1ca3bacbbd23113b227a77526f4b0fc /WindowManager/src/windowmanager.cpp | |
parent | ec688535558c31989e7da221b858328b2e0766c8 (diff) |
Fix for pid and surface handling.
Signed-off-by: Bocklage, Jens <Jens_Bocklage@mentor.com>
Diffstat (limited to 'WindowManager/src/windowmanager.cpp')
-rw-r--r-- | WindowManager/src/windowmanager.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/WindowManager/src/windowmanager.cpp b/WindowManager/src/windowmanager.cpp index 765ae4f..ed38c49 100644 --- a/WindowManager/src/windowmanager.cpp +++ b/WindowManager/src/windowmanager.cpp @@ -420,6 +420,24 @@ QList<Layout> WindowManager::getAllLayouts() return m_layouts; } +QList<int> WindowManager::getAllSurfacesOfProcess(int pid) +{ + QList<int> result; +#ifdef __arm__ + struct ilmSurfaceProperties surfaceProperties; + + for (int i = 0; i < m_surfaces.size(); ++i) + { + ilm_getPropertiesOfSurface(m_surfaces.at(i), &surfaceProperties); + if (pid == surfaceProperties.creatorPid) + { + result.append(m_surfaces.at(i)); + } + } +#endif + return result; +} + QList<int> WindowManager::getAvailableLayouts(int numberOfAppSurfaces) { qDebug("-=[getAvailableLayouts]=-"); |