clang-format

This commit is contained in:
Jannik 2024-02-10 17:35:46 +01:00
parent a2925fa5da
commit acf6611098
No known key found for this signature in database
1 changed files with 2 additions and 3 deletions

View File

@ -484,9 +484,8 @@ void Workspaces::onWindowTitleEvent(std::string const &payload) {
void Workspaces::updateWindowCount() {
const Json::Value workspacesJson = gIPC->getSocket1JsonReply("workspaces");
for (auto &workspace : m_workspaces) {
auto workspaceJson = std::find_if(
workspacesJson.begin(), workspacesJson.end(),
[&](Json::Value const &x) {
auto workspaceJson =
std::find_if(workspacesJson.begin(), workspacesJson.end(), [&](Json::Value const &x) {
return x["name"].asString() == workspace->name() ||
(workspace->isSpecial() && x["name"].asString() == "special:" + workspace->name());
});