Also consider floating nodes when checking for flags

Fixes #3030
This commit is contained in:
hrdl 2024-03-18 22:52:40 +01:00
parent 2c927de4c6
commit 856a34e16d
1 changed files with 4 additions and 0 deletions

View File

@ -261,6 +261,10 @@ bool Workspaces::hasFlag(const Json::Value &node, const std::string &flag) {
[&](auto const &e) { return hasFlag(e, flag); })) { [&](auto const &e) { return hasFlag(e, flag); })) {
return true; return true;
} }
if (std::any_of(node["floating_nodes"].begin(), node["floating_nodes"].end(),
[&](auto const &e) { return hasFlag(e, flag); })) {
return true;
}
return false; return false;
} }