Merge pull request #3023 from tomben13/fix_segfault

pull/3032/head
Alexis Rouillard 2024-03-17 23:09:38 +01:00 committed by GitHub
commit 2c927de4c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -235,7 +235,10 @@ void Workspaces::doUpdate() {
auto wName = wNameRaw.starts_with("special:") ? wNameRaw.substr(8) : wNameRaw;
return wName == workspace->name();
});
workspace->setOutput((*updated_workspace)["monitor"].asString());
if (updated_workspace != updated_workspaces.end()) {
workspace->setOutput((*updated_workspace)["monitor"].asString());
}
workspace->update(m_format, workspaceIcon);
}