summaryrefslogtreecommitdiff
path: root/src/managers/AnimationManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/managers/AnimationManager.cpp')
-rw-r--r--src/managers/AnimationManager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/managers/AnimationManager.cpp b/src/managers/AnimationManager.cpp
index 48d56148..8c1f6e38 100644
--- a/src/managers/AnimationManager.cpp
+++ b/src/managers/AnimationManager.cpp
@@ -48,7 +48,8 @@ void CAnimationManager::tick() {
}
// process fadein/out for unmapped windows, but nothing else.
- if (!g_pCompositor->windowValidMapped(&w))
+ // we can't use windowValidMapped because we want to animate hidden windows too.
+ if (!g_pCompositor->windowExists(&w) || !w.m_bIsMapped || !g_pXWaylandManager->getWindowSurface(&w))
continue;
// process the borders