From 32aca887522063cf728357af247ca6f20d93eb97 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sat, 15 Jun 2024 16:20:00 +0200 Subject: keybinds: add custom event dispatcher fixes #3439 --- src/managers/KeybindManager.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/managers/KeybindManager.cpp') diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 49ea39a3..eb07850c 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -114,6 +114,7 @@ CKeybindManager::CKeybindManager() { m_mDispatchers["movewindoworgroup"] = moveWindowOrGroup; m_mDispatchers["setignoregrouplock"] = setIgnoreGroupLock; m_mDispatchers["denywindowfromgroup"] = denyWindowFromGroup; + m_mDispatchers["event"] = event; m_mDispatchers["global"] = global; m_tScrollTimer.reset(); @@ -2680,3 +2681,7 @@ void CKeybindManager::moveGroupWindow(std::string args) { PLASTWINDOW->updateWindowDecos(); } + +void CKeybindManager::event(std::string args) { + g_pEventManager->postEvent(SHyprIPCEvent{"custom", args}); +} -- cgit v1.2.3