monitor: fix crash on mutating workspace vec

fixes #11236
This commit is contained in:
Vaxry 2025-07-28 22:08:05 +02:00
parent c63d0003a1
commit abe29647ae
No known key found for this signature in database
GPG key ID: 665806380871D640
3 changed files with 15 additions and 4 deletions

View file

@ -79,7 +79,8 @@ class CCompositor {
auto getWorkspaces() {
return std::views::filter(m_workspaces, [](const auto& e) { return e; });
}
void registerWorkspace(PHLWORKSPACE w);
std::vector<PHLWORKSPACE> getWorkspacesCopy();
void registerWorkspace(PHLWORKSPACE w);
//