summaryrefslogtreecommitdiff
path: root/src/render/decorations
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-07-05 17:31:47 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-07-05 17:31:47 +0200
commit6f5b8425cb7b7304dcce9a48e613d87538bd33d2 (patch)
treef5cd52eae23f9ab8c0d822d2d12ea203718ecf04 /src/render/decorations
parentdd422abb3359530bf999137ed1fe8bf97eefc2ed (diff)
fix invalidating the deque in CHyprGroupBarDeco
Diffstat (limited to 'src/render/decorations')
-rw-r--r--src/render/decorations/CHyprGroupBarDecoration.cpp16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/render/decorations/CHyprGroupBarDecoration.cpp b/src/render/decorations/CHyprGroupBarDecoration.cpp
index abb5d90c..2d46d7a0 100644
--- a/src/render/decorations/CHyprGroupBarDecoration.cpp
+++ b/src/render/decorations/CHyprGroupBarDecoration.cpp
@@ -40,12 +40,8 @@ void CHyprGroupBarDecoration::updateWindow(CWindow* pWindow) {
if (g_pLayoutManager->getCurrentLayout()->getLayoutName() != "dwindle") {
// ????
- for (auto it = pWindow->m_dWindowDecorations.begin(); it != pWindow->m_dWindowDecorations.end(); it++) {
- if (it->get() == this) {
- pWindow->m_dWindowDecorations.erase(it);
- return;
- }
- }
+ m_pWindow->m_vDecosToRemove.push_back(this);
+ return;
}
// get the group info
@@ -58,12 +54,8 @@ void CHyprGroupBarDecoration::updateWindow(CWindow* pWindow) {
if (m_dwGroupMembers.size() == 0) {
// remove
- for (auto it = pWindow->m_dWindowDecorations.begin(); it != pWindow->m_dWindowDecorations.end(); it++) {
- if (it->get() == this) {
- pWindow->m_dWindowDecorations.erase(it);
- return;
- }
- }
+ m_pWindow->m_vDecosToRemove.push_back(this);
+ return;
}
}