From b88813c7efa4b7b0c5fe01471c5fa5b67a61dc7e Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Sun, 22 Feb 2026 23:30:10 +0000 Subject: event: refactor HookSystem into a typed event bus (#13333) Refactors the old HookSystem into a typed event bus with clear separation, discovery and types. --- src/layout/LayoutManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/layout/LayoutManager.cpp') diff --git a/src/layout/LayoutManager.cpp b/src/layout/LayoutManager.cpp index 29caa0ea..bcbf8438 100644 --- a/src/layout/LayoutManager.cpp +++ b/src/layout/LayoutManager.cpp @@ -5,14 +5,14 @@ #include "../config/ConfigManager.hpp" #include "../Compositor.hpp" -#include "../managers/HookSystemManager.hpp" #include "../desktop/state/FocusState.hpp" #include "../desktop/view/Group.hpp" +#include "../event/EventBus.hpp" using namespace Layout; CLayoutManager::CLayoutManager() { - static auto P = g_pHookSystem->hookDynamic("monitorLayoutChanged", [](void* hk, SCallbackInfo& info, std::any param) { + static auto P = Event::bus()->m_events.monitor.layoutChanged.listen([] { for (const auto& ws : g_pCompositor->getWorkspaces()) { ws->m_space->recheckWorkArea(); } -- cgit v1.2.3