summaryrefslogtreecommitdiffstats
path: root/src/wm_layer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wm_layer.cpp')
-rw-r--r--src/wm_layer.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/wm_layer.cpp b/src/wm_layer.cpp
index 294e356..66fb0a2 100644
--- a/src/wm_layer.cpp
+++ b/src/wm_layer.cpp
@@ -36,6 +36,11 @@ LayerState::LayerState()
area2appid()
{}
+const unordered_map<string, string> LayerState::getCurrentState()
+{
+ return this->area2appid;
+}
+
const vector<unsigned> LayerState::getIviIdList()
{
return this->render_order;
@@ -183,6 +188,18 @@ void WMLayer::attachAppToArea(const string& app, const string& area)
this->tmp_state.attachAppToArea(app, area);
}
+string WMLayer::attachedApp(const string& area)
+{
+ string ret;
+ auto list = this->state.getCurrentState();
+ auto app = list.find(area);
+ if(app != list.end())
+ {
+ ret = app->second;
+ }
+ return ret;
+}
+
void WMLayer::appendArea(const string& area)
{
this->area_list.push_back(area);