renderer: add occlusion for back layers

This commit is contained in:
vaxerski
2023-07-19 16:13:55 +02:00
parent b08b72358a
commit f4f0f35c5b
5 changed files with 65 additions and 12 deletions

View File

@@ -8,7 +8,8 @@ int wlTick(void* data) {
wl_event_source_timer_update(g_pAnimationManager->m_pAnimationTick, 1000 / refreshRate);
if (g_pCompositor->m_bSessionActive && std::ranges::any_of(g_pCompositor->m_vMonitors, [](const auto& mon) { return mon->m_bEnabled && mon->output; })) {
if (g_pCompositor->m_bSessionActive && g_pAnimationManager && g_pHookSystem &&
std::ranges::any_of(g_pCompositor->m_vMonitors, [](const auto& mon) { return mon->m_bEnabled && mon->output; })) {
g_pAnimationManager->tick();
EMIT_HOOK_EVENT("tick", nullptr);
}