Move AnimationManager::tick() to an event loop

This commit is contained in:
vaxerski 2023-03-02 17:30:47 +00:00
parent dea71875e4
commit 34685a836a
3 changed files with 16 additions and 1 deletions

View file

@ -151,7 +151,6 @@ void Events::listener_monitorFrame(void* owner, void* data) {
if (PMONITOR->ID == g_pHyprRenderer->m_pMostHzMonitor->ID ||
*PVFR == 1) { // unfortunately with VFR we don't have the guarantee mostHz is going to be updated all the time, so we have to ignore that
g_pCompositor->sanityCheckWorkspaces();
g_pAnimationManager->tick();
g_pConfigManager->dispatchExecOnce(); // We exec-once when at least one monitor starts refreshing, meaning stuff has init'd