mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-10-09 19:46:28 +00:00
added a submap IPC event
This commit is contained in:
@@ -1362,6 +1362,7 @@ void CKeybindManager::setSubmap(std::string submap) {
|
|||||||
if (submap == "reset" || submap == "") {
|
if (submap == "reset" || submap == "") {
|
||||||
m_szCurrentSelectedSubmap = "";
|
m_szCurrentSelectedSubmap = "";
|
||||||
Debug::log(LOG, "Reset active submap to the default one.");
|
Debug::log(LOG, "Reset active submap to the default one.");
|
||||||
|
g_pEventManager->postEvent(SHyprIPCEvent{"submap", ""});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1369,6 +1370,7 @@ void CKeybindManager::setSubmap(std::string submap) {
|
|||||||
if (k.submap == submap) {
|
if (k.submap == submap) {
|
||||||
m_szCurrentSelectedSubmap = submap;
|
m_szCurrentSelectedSubmap = submap;
|
||||||
Debug::log(LOG, "Changed keybind submap to %s", submap.c_str());
|
Debug::log(LOG, "Changed keybind submap to %s", submap.c_str());
|
||||||
|
g_pEventManager->postEvent(SHyprIPCEvent{"submap", submap});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user