diff options
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]=-"); |