Skip to content

Commit

Permalink
Merge pull request #3039 from hrdl-github/fix-floating
Browse files Browse the repository at this point in the history
Also consider floating nodes when checking for flags
  • Loading branch information
Alexays authored Mar 19, 2024
2 parents 2c927de + 856a34e commit 73e24af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modules/sway/workspaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 73e24af

Please sign in to comment.