mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-02 13:45:58 +01:00
parent
3d1bf1405e
commit
54376d7b5f
1 changed files with 2 additions and 0 deletions
|
@ -693,6 +693,8 @@ CMonitor* CCompositor::getMonitorFromVector(const Vector2D& point) {
|
||||||
void CCompositor::removeWindowFromVectorSafe(CWindow* pWindow) {
|
void CCompositor::removeWindowFromVectorSafe(CWindow* pWindow) {
|
||||||
if (windowExists(pWindow) && !pWindow->m_bFadingOut)
|
if (windowExists(pWindow) && !pWindow->m_bFadingOut)
|
||||||
std::erase_if(m_vWindows, [&](std::unique_ptr<CWindow>& el) { return el.get() == pWindow; });
|
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) {
|
bool CCompositor::windowExists(CWindow* pWindow) {
|
||||||
|
|
Loading…
Reference in a new issue