Append role to setting
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>
Wed, 22 Aug 2018 12:19:21 +0000 (21:19 +0900)
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>
Wed, 22 Aug 2018 12:19:21 +0000 (21:19 +0900)
Change-Id: I0c51005a03625a9e42b87b96b0b74fb57cb20f0d
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
src/wm_layer.cpp

index 365e37d..af258e4 100644 (file)
@@ -125,6 +125,7 @@ WMLayer::WMLayer(json_object* j) : before_state(), state()
     string str_type = type;
     t = (type == "tile") ? LayerSetting::TILE : LayerSetting::STACK;
     this->setting = std::make_unique<LayerSetting>(name, t, begin, end);
+    this->setting->appendRole(role);
 }
 
 unsigned WMLayer::getNewLayerID(const std::string& role)