summaryrefslogtreecommitdiff
path: root/src/managers/KeybindManager.cpp
diff options
context:
space:
mode:
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});
+}