mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 16:06:00 +01:00
added a submap IPC event
This commit is contained in:
parent
41883e0522
commit
a74b8033ca
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue