X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Flayers.cpp;h=fe954957aeb7434e8f251cf1461f067405766000;hb=08b73681b0ea6206fc6dc96575ac3e8d6006bc70;hp=21504403e193d8c3fad0302b487b47296cfa8c63;hpb=860d9537b74f6fe406d21d3da753a3d09b995557;p=apps%2Fagl-service-windowmanager.git diff --git a/src/layers.cpp b/src/layers.cpp index 2150440..fe95495 100644 --- a/src/layers.cpp +++ b/src/layers.cpp @@ -37,8 +37,16 @@ layer::layer(nlohmann::json const &j) { jr["width"], jr["height"], jr["x"], jr["y"], }; } + + // Init flag of normal layout only + this->is_normal_layout_only = true; + auto split_layouts = j.find("split_layouts"); if (split_layouts != j.end()) { + + // Clear flag of normal layout only + this->is_normal_layout_only = false; + auto &sls = j["split_layouts"]; // this->layouts.reserve(sls.size()); std::transform(std::cbegin(sls), std::cend(sls), @@ -53,6 +61,8 @@ layer::layer(nlohmann::json const &j) { return l; }); } + HMI_DEBUG("wm", "layer_id:%d is_normal_layout_only:%d\n", + this->layer_id, this->is_normal_layout_only); } struct result to_layer_map(nlohmann::json const &j) {