X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fwm_layer.cpp;h=28e1cd9559287c91fe8bc671f71ab37de58342e9;hb=845d2b5ed9f70d110fe731b8c5d17694523ce0e5;hp=154d874c9b50fa734f399c148597162051fada6a;hpb=2ce7162980b40cf5587ed8a0247f3e9bd3407ad7;p=apps%2Fagl-service-windowmanager.git diff --git a/src/wm_layer.cpp b/src/wm_layer.cpp index 154d874..28e1cd9 100644 --- a/src/wm_layer.cpp +++ b/src/wm_layer.cpp @@ -86,13 +86,21 @@ void LayerState::setArea(const string& app, const string& area) void LayerState::dump() { - std::string str; + std::string ids, apps; for(const auto& ro : this->render_order) { - str += std::to_string(ro); - str += ","; + ids += std::to_string(ro); + ids += ","; } - DUMP(" render order : %s", str.c_str()); + for(const auto& area : this->area2appid) + { + apps += area.first; + apps += ":"; + apps += area.second; + apps += ","; + } + DUMP(" render order : %s", ids.c_str()); + DUMP(" area, app : %s", apps.c_str()); } WMLayer::WMLayer(json_object* j, unsigned uuid) : tmp_state(), state(), uuid(uuid) @@ -191,6 +199,11 @@ void WMLayer::removeLayerFromState(unsigned layer) this->tmp_state.removeLayer(layer); } +void WMLayer::setAreaToState(const string& app, const string& area) +{ + this->tmp_state.setArea(app, area); +} + void WMLayer::appendArea(const string& area) { this->area_list.push_back(area);