diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-09-05 13:50:52 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-09-05 13:50:52 +0200 |
| commit | a74b8033ca97bdfc53a0a8aaf3aec9aec56fa410 (patch) | |
| tree | 034b839969d60dfd6ed576cef3f47b380099888e /src/managers/KeybindManager.cpp | |
| parent | 41883e052223e407791818e814ce565c62e1a9a9 (diff) | |
added a submap IPC event
Diffstat (limited to 'src/managers/KeybindManager.cpp')
| -rw-r--r-- | src/managers/KeybindManager.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index e7acc23c..c1ef0cfe 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -1362,6 +1362,7 @@ void CKeybindManager::setSubmap(std::string submap) { if (submap == "reset" || submap == "") { m_szCurrentSelectedSubmap = ""; Debug::log(LOG, "Reset active submap to the default one."); + g_pEventManager->postEvent(SHyprIPCEvent{"submap", ""}); return; } @@ -1369,6 +1370,7 @@ void CKeybindManager::setSubmap(std::string submap) { if (k.submap == submap) { m_szCurrentSelectedSubmap = submap; Debug::log(LOG, "Changed keybind submap to %s", submap.c_str()); + g_pEventManager->postEvent(SHyprIPCEvent{"submap", submap}); return; } } |
