From ac2cd0f0dc7d7da2f9925769c296f9cb3353735a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Zag=C3=B3rowski?= Date: Wed, 12 Apr 2023 12:18:33 +0200 Subject: [PATCH] plugins: Add "tick" event (#2029) --- src/managers/AnimationManager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/managers/AnimationManager.cpp b/src/managers/AnimationManager.cpp index 6a6fc799..204af002 100644 --- a/src/managers/AnimationManager.cpp +++ b/src/managers/AnimationManager.cpp @@ -1,5 +1,6 @@ #include "AnimationManager.hpp" #include "../Compositor.hpp" +#include "HookSystemManager.hpp" int wlTick(void* data) { @@ -9,6 +10,8 @@ int wlTick(void* data) { g_pAnimationManager->tick(); + EMIT_HOOK_EVENT("tick", nullptr); + return 0; }