mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-30 05:05:59 +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 == "") {
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue