modules/sway/workspaces: clang-format fix

This commit is contained in:
Austin Horstman 2024-06-09 13:05:47 -05:00
parent b365831839
commit 08c5df3633
No known key found for this signature in database
1 changed files with 2 additions and 4 deletions

View File

@ -506,9 +506,7 @@ void Workspaces::onButtonReady(const Json::Value &node, Gtk::Button &button) {
// check if any of its nodes are focused as well. // check if any of its nodes are focused as well.
bool focused = node["focused"].asBool() || bool focused = node["focused"].asBool() ||
std::any_of(node["nodes"].begin(), node["nodes"].end(), std::any_of(node["nodes"].begin(), node["nodes"].end(),
[](const auto &child) { [](const auto &child) { return child["focused"].asBool(); });
return child["focused"].asBool();
});
if (focused) { if (focused) {
button.show(); button.show();