From 4bd23604f88708718df0f5e5971b2d1169e13e9b Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Tue, 12 Apr 2022 19:18:26 +0200 Subject: Dwindle window group fixes fixed a crash and animations in the bg --- src/managers/AnimationManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/managers/AnimationManager.cpp') 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 -- cgit v1.2.3