mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-11-25 08:17:18 +03:00
compositor: fix ghost fadingOut windows remaining after cleanup
This commit is contained in:
parent
6e4c15e70a
commit
80f8524e65
@ -1459,19 +1459,14 @@ void CCompositor::cleanupFadingOut(const int& monid) {
|
||||
if (w->m_iMonitorID != (long unsigned int)monid)
|
||||
continue;
|
||||
|
||||
bool valid = windowExists(w);
|
||||
if (!w->m_bFadingOut || w->m_fAlpha.value() == 0.f) {
|
||||
|
||||
if (!valid || !w->m_bFadingOut || w->m_fAlpha.value() == 0.f) {
|
||||
if (valid) {
|
||||
w->m_bFadingOut = false;
|
||||
w->m_bFadingOut = false;
|
||||
|
||||
if (!w->m_bReadyToDelete)
|
||||
continue;
|
||||
if (!w->m_bReadyToDelete)
|
||||
continue;
|
||||
|
||||
removeWindowFromVectorSafe(w);
|
||||
}
|
||||
|
||||
std::erase(m_vWindowsFadingOut, w);
|
||||
removeWindowFromVectorSafe(w);
|
||||
|
||||
Debug::log(LOG, "Cleanup: destroyed a window");
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user