hyprland/workspaces: fix crash

This commit is contained in:
Austin Horstman
2025-04-03 23:11:33 -05:00
parent 569445f8b3
commit c5bc3bc59a

View File

@ -578,7 +578,7 @@ void Workspaces::onWindowTitleEvent(std::string const &payload) {
return client["address"].asString() == jsonWindowAddress; return client["address"].asString() == jsonWindowAddress;
}); });
if (!client->empty()) { if (client != clientsData.end() && !client->empty()) {
(*inserter)({*client}); (*inserter)({*client});
} }
} }