diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-06-15 16:20:00 +0200 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-06-15 16:20:00 +0200 |
| commit | 32aca887522063cf728357af247ca6f20d93eb97 (patch) | |
| tree | c8a82f96f319d72be8af3424d43396de1015410b /src/managers/KeybindManager.cpp | |
| parent | df0c014ba0c9c665df51fe7750ab9d7288b57478 (diff) | |
keybinds: add custom event dispatcher
fixes #3439
Diffstat (limited to 'src/managers/KeybindManager.cpp')
| -rw-r--r-- | src/managers/KeybindManager.cpp | 5 |
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}); +} |
