Fix window title not being updated properly

This commit is contained in:
Pol Rivero
2025-05-01 20:51:12 +02:00
parent 72404a77f0
commit 998fd7a192

View File

@ -577,7 +577,7 @@ void Workspaces::onWindowTitleEvent(std::string const &payload) {
if (inserter.has_value()) { if (inserter.has_value()) {
Json::Value clientsData = m_ipc.getSocket1JsonReply("clients"); Json::Value clientsData = m_ipc.getSocket1JsonReply("clients");
std::string jsonWindowAddress = fmt::format("0x{}", payload); std::string jsonWindowAddress = fmt::format("0x{}", windowAddress);
auto client = std::ranges::find_if(clientsData, [jsonWindowAddress](auto &client) { auto client = std::ranges::find_if(clientsData, [jsonWindowAddress](auto &client) {
return client["address"].asString() == jsonWindowAddress; return client["address"].asString() == jsonWindowAddress;