You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I3IPC_WARN("Got a unknown \"layout\" property: \"" << layout << "\". Perhaps its neccessary to update i3ipc++. If you are using latest, note maintainer about this")
129
129
}
130
130
131
+
for (auto& member : o.getMemberNames()) {
132
+
std::string value;
133
+
try {
134
+
value = o[member].asString();
135
+
} catch(const std::exception&) {
136
+
// Just collect what we can
137
+
continue;
138
+
}
139
+
140
+
container->map[member] = value;
141
+
}
142
+
143
+
if (Json::Value value{o["name"]}; container->type == "workspace" && !value.isNull()) {
144
+
container->workspace = value.asString();
145
+
} else {
146
+
// Inherit workspace if any
147
+
container->workspace = workspace_name;
148
+
}
149
+
150
+
131
151
Json::Value nodes = o["nodes"];
132
152
if (!nodes.isNull()) {
133
153
IPC_JSON_ASSERT_TYPE_ARRAY(nodes, "nodes")
134
154
for (Json::ArrayIndex i = 0; i < nodes.size(); i++) {
0 commit comments