Skip to content

Commit 2c927de

Browse files
authored
Merge pull request #3023 from tomben13/fix_segfault
2 parents ca17bdb + 736309e commit 2c927de

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/modules/hyprland/workspaces.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,10 @@ void Workspaces::doUpdate() {
235235
auto wName = wNameRaw.starts_with("special:") ? wNameRaw.substr(8) : wNameRaw;
236236
return wName == workspace->name();
237237
});
238-
workspace->setOutput((*updated_workspace)["monitor"].asString());
238+
239+
if (updated_workspace != updated_workspaces.end()) {
240+
workspace->setOutput((*updated_workspace)["monitor"].asString());
241+
}
239242

240243
workspace->update(m_format, workspaceIcon);
241244
}

0 commit comments

Comments
 (0)