animations: simplify window loop

This commit is contained in:
Vaxry 2024-04-01 16:22:21 +01:00
parent 7513c0cea5
commit 108163f1e5

View file

@ -111,7 +111,7 @@ void CAnimationManager::tick() {
// TODO: just make this into a damn callback already vax...
for (auto& w : g_pCompositor->m_vWindows) {
if (!g_pCompositor->windowValidMapped(w.get()) || w->m_iWorkspaceID != PWORKSPACE->m_iID)
if (!w->m_bIsMapped || w->isHidden() || w->m_iWorkspaceID != PWORKSPACE->m_iID)
continue;
if (w->m_bIsFloating && !w->m_bPinned) {