Merge pull request #3039 from hrdl-github/fix-floating

Also consider floating nodes when checking for flags
This commit is contained in:
Alexis Rouillard 2024-03-19 14:25:20 +01:00 committed by GitHub
commit 73e24af71c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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); })) {
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;
}