mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-06 07:01:57 -07:00
compositor: fix ghost fadingOut windows remaining after cleanup
This commit is contained in:
@@ -1419,19 +1419,14 @@ void CCompositor::cleanupFadingOut(const int& monid) {
|
|||||||
if (w->m_iMonitorID != (long unsigned int)monid)
|
if (w->m_iMonitorID != (long unsigned int)monid)
|
||||||
continue;
|
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) {
|
w->m_bFadingOut = false;
|
||||||
if (valid) {
|
|
||||||
w->m_bFadingOut = false;
|
|
||||||
|
|
||||||
if (!w->m_bReadyToDelete)
|
if (!w->m_bReadyToDelete)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
removeWindowFromVectorSafe(w);
|
removeWindowFromVectorSafe(w);
|
||||||
}
|
|
||||||
|
|
||||||
std::erase(m_vWindowsFadingOut, w);
|
|
||||||
|
|
||||||
Debug::log(LOG, "Cleanup: destroyed a window");
|
Debug::log(LOG, "Cleanup: destroyed a window");
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user