mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-09 23:25:57 +01:00
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);
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue