summaryrefslogtreecommitdiff
path: root/src/Window.cpp
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/Window.cpp
parentdd422abb3359530bf999137ed1fe8bf97eefc2ed (diff)
fix invalidating the deque in CHyprGroupBarDeco
Diffstat (limited to 'src/Window.cpp')
-rw-r--r--src/Window.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Window.cpp b/src/Window.cpp
index fc09b330..6b264b6f 100644
--- a/src/Window.cpp
+++ b/src/Window.cpp
@@ -77,6 +77,18 @@ wlr_box CWindow::getWindowIdealBoundingBoxIgnoreReserved() {
void CWindow::updateWindowDecos() {
for (auto& wd : m_dWindowDecorations)
wd->updateWindow(this);
+
+ for (auto& wd : m_vDecosToRemove) {
+ for (auto it = m_dWindowDecorations.begin(); it != m_dWindowDecorations.end(); it++) {
+ if (it->get() == wd) {
+ it = m_dWindowDecorations.erase(it);
+ if (it == m_dWindowDecorations.end())
+ break;
+ }
+ }
+ }
+
+ m_vDecosToRemove.clear();
}
pid_t CWindow::getPID() {