Fixed segfault

pull/3023/head
Tom Benham 2024-03-17 23:00:48 +01:00
parent ca17bdb214
commit 736309ef1f
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();
});
if (updated_workspace != updated_workspaces.end()) {
workspace->setOutput((*updated_workspace)["monitor"].asString());
}
workspace->update(m_format, workspaceIcon);
}