fix: lint

This commit is contained in:
Alex 2024-02-20 11:33:41 +01:00
parent 4ef5b48474
commit a45932973a
1 changed files with 4 additions and 2 deletions

View File

@ -150,8 +150,10 @@ void Window::queryActiveWorkspace() {
[&](Json::Value window) {
return window["workspace"]["id"] == workspace_.id && window["mapped"].asBool();
});
swallowing_ = std::any_of(workspace_windows.begin(), workspace_windows.end(),
[&](Json::Value window) { return !window["swallowing"].isNull() && window["swallowing"].asString() != "0x0"; });
swallowing_ =
std::any_of(workspace_windows.begin(), workspace_windows.end(), [&](Json::Value window) {
return !window["swallowing"].isNull() && window["swallowing"].asString() != "0x0";
});
std::vector<Json::Value> visible_windows;
std::copy_if(workspace_windows.begin(), workspace_windows.end(),
std::back_inserter(visible_windows),