aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-03-29 19:06:08 +0000
committerVaxry <[email protected]>2024-03-29 19:07:18 +0000
commit54376d7b5f88bffd96ce9ded26637d83d7aa95b1 (patch)
tree48cfd440e88925512138f75afca4e06b1ae00bc1
parent3d1bf1405ee2b368b461164210ad1485d5f32178 (diff)
downloadHyprland-54376d7b5f88bffd96ce9ded26637d83d7aa95b1.tar.gz
Hyprland-54376d7b5f88bffd96ce9ded26637d83d7aa95b1.zip
compositor: remove windows from fading out on destroy
ref #5321
-rw-r--r--src/Compositor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp
index 2e49237c..7e81797f 100644
--- a/src/Compositor.cpp
+++ b/src/Compositor.cpp
@@ -693,6 +693,8 @@ CMonitor* CCompositor::getMonitorFromVector(const Vector2D& point) {
void CCompositor::removeWindowFromVectorSafe(CWindow* pWindow) {
if (windowExists(pWindow) && !pWindow->m_bFadingOut)
std::erase_if(m_vWindows, [&](std::unique_ptr<CWindow>& el) { return el.get() == pWindow; });
+
+ std::erase_if(m_vWindowsFadingOut, [&](CWindow* el) { return el == pWindow; });
}
bool CCompositor::windowExists(CWindow* pWindow) {