summaryrefslogtreecommitdiff
path: root/src/managers/KeybindManager.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-06-15 16:20:00 +0200
committerVaxry <vaxry@vaxry.net>2024-06-15 16:20:00 +0200
commit32aca887522063cf728357af247ca6f20d93eb97 (patch)
treec8a82f96f319d72be8af3424d43396de1015410b /src/managers/KeybindManager.cpp
parentdf0c014ba0c9c665df51fe7750ab9d7288b57478 (diff)
keybinds: add custom event dispatcher
fixes #3439
Diffstat (limited to 'src/managers/KeybindManager.cpp')
-rw-r--r--src/managers/KeybindManager.cpp5
1 files changed, 5 insertions, 0 deletions
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});
+}