aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-02-14 17:41:59 +0000
committervaxerski <[email protected]>2023-02-14 17:44:09 +0000
commit87a4cc76542083fdb4bd49e45e71a8edaace2f85 (patch)
tree63fd5e27fd8680b8a177a20bdb0bf8bcc3f51cb9
parentfdc847706a005dfaa204ad0cde0953abce3244bd (diff)
downloadHyprland-87a4cc76542083fdb4bd49e45e71a8edaace2f85.tar.gz
Hyprland-87a4cc76542083fdb4bd49e45e71a8edaace2f85.zip
rethink visible flag in animmgr
-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 428b5ca4..456ae7f7 100644
--- a/src/managers/AnimationManager.cpp
+++ b/src/managers/AnimationManager.cpp
@@ -70,7 +70,7 @@ void CAnimationManager::tick() {
animationsDisabled = animationsDisabled || PLAYER->noAnimations;
}
- const bool VISIBLE = PWINDOW ? g_pHyprRenderer->shouldRenderWindow(PWINDOW) : true;
+ const bool VISIBLE = PWINDOW ? g_pCompositor->isWorkspaceVisible(PWINDOW->m_iWorkspaceID) : true;
// beziers are with a switch unforto
// TODO: maybe do something cleaner