diff options
| author | Darksome <dev@darkso.me> | 2022-07-15 19:42:03 +0300 |
|---|---|---|
| committer | Darksome <dev@darkso.me> | 2022-07-15 19:42:03 +0300 |
| commit | 5388b54442614cb0d3d445f101e7cd86bf64c125 (patch) | |
| tree | 26057ff185e423e944e8b250ed7fe26654b69623 /src/render/decorations | |
| parent | cb8a6f881b11e9a269fd5f7aa64eafe2beda0b0d (diff) | |
| parent | 6306d4dae3fa221a6099e109c7faef60bac4fac5 (diff) | |
Merge upstream
Diffstat (limited to 'src/render/decorations')
| -rw-r--r-- | src/render/decorations/CHyprGroupBarDecoration.cpp | 16 |
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; } } |
