From a74b8033ca97bdfc53a0a8aaf3aec9aec56fa410 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Mon, 5 Sep 2022 13:50:52 +0200 Subject: [PATCH] added a submap IPC event --- src/managers/KeybindManager.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; } }