tick: don't tick on invalid session
This commit is contained in:
parent
29fc410a8f
commit
a6d94eafba
1 changed files with 4 additions and 3 deletions
|
|
@ -8,9 +8,10 @@ int wlTick(void* data) {
|
||||||
|
|
||||||
wl_event_source_timer_update(g_pAnimationManager->m_pAnimationTick, 1000 / refreshRate);
|
wl_event_source_timer_update(g_pAnimationManager->m_pAnimationTick, 1000 / refreshRate);
|
||||||
|
|
||||||
g_pAnimationManager->tick();
|
if (g_pCompositor->m_bSessionActive && 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);
|
EMIT_HOOK_EVENT("tick", nullptr);
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue