Skip to content

Commit

Permalink
Merge pull request #3023 from tomben13/fix_segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexays authored Mar 17, 2024
2 parents ca17bdb + 736309e commit 2c927de
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/modules/hyprland/workspaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 2c927de

Please sign in to comment.