aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-04-01 16:22:21 +0100
committerVaxry <[email protected]>2024-04-01 16:22:24 +0100
commit108163f1e5e0e1423a170e78688a826963ec7a81 (patch)
treefb636e2cba283766686eb62edb9bd691c4142909
parent7513c0cea59f4e1f5336dc31ebfabd8362e02d69 (diff)
downloadHyprland-108163f1e5e0e1423a170e78688a826963ec7a81.tar.gz
Hyprland-108163f1e5e0e1423a170e78688a826963ec7a81.zip
animations: simplify window loop
-rw-r--r--src/managers/AnimationManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/managers/AnimationManager.cpp b/src/managers/AnimationManager.cpp
index 6cc89cde..ab81841c 100644
--- a/src/managers/AnimationManager.cpp
+++ b/src/managers/AnimationManager.cpp
@@ -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) {