summaryrefslogtreecommitdiff
path: root/src/managers/AnimationManager.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-04-12 19:18:26 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-04-12 19:18:26 +0200
commit4bd23604f88708718df0f5e5971b2d1169e13e9b (patch)
treed489d9a78004d44028babcbe26e4b71d6c31fbaa /src/managers/AnimationManager.cpp
parentb6a93b2f0383fc8f084c7757f0f67b8c0ebeccc7 (diff)
Dwindle window group fixes
fixed a crash and animations in the bg
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