mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-15 12:26:00 +01:00
fix: change separator to avoid conflicts with keyboards
This commit is contained in:
parent
3bbc38d2a3
commit
2292f38f2e
1 changed files with 3 additions and 12 deletions
|
@ -909,12 +909,9 @@ void CInputManager::setupKeyboard(SP<IKeyboard> keeb) {
|
||||||
g_pKeybindManager->m_mKeyToCodeCache.clear();
|
g_pKeybindManager->m_mKeyToCodeCache.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
// NOTE: This block is deprecated.
|
|
||||||
g_pEventManager->postEvent(SHyprIPCEvent{"activelayout", PKEEB->hlName + "," + LAYOUT});
|
g_pEventManager->postEvent(SHyprIPCEvent{"activelayout", PKEEB->hlName + "," + LAYOUT});
|
||||||
|
g_pEventManager->postEvent(SHyprIPCEvent{"activelayoutv2", PKEEB->hlName + "||" + LAYOUT});
|
||||||
EMIT_HOOK_EVENT("activeLayout", (std::vector<std::any>{PKEEB, LAYOUT}));
|
EMIT_HOOK_EVENT("activeLayout", (std::vector<std::any>{PKEEB, LAYOUT}));
|
||||||
|
|
||||||
g_pEventManager->postEvent(SHyprIPCEvent{"activelayoutv2", PKEEB->hlName + ";" + LAYOUT});
|
|
||||||
EMIT_HOOK_EVENT("activeLayoutv2", (std::vector<std::any>{PKEEB, LAYOUT}));
|
|
||||||
},
|
},
|
||||||
keeb.get());
|
keeb.get());
|
||||||
|
|
||||||
|
@ -978,13 +975,10 @@ void CInputManager::applyConfigToKeyboard(SP<IKeyboard> pKeyboard) {
|
||||||
|
|
||||||
const auto LAYOUTSTR = pKeyboard->getActiveLayout();
|
const auto LAYOUTSTR = pKeyboard->getActiveLayout();
|
||||||
|
|
||||||
// NOTE: This block is deprecated.
|
|
||||||
g_pEventManager->postEvent(SHyprIPCEvent{"activelayout", pKeyboard->hlName + "," + LAYOUTSTR});
|
g_pEventManager->postEvent(SHyprIPCEvent{"activelayout", pKeyboard->hlName + "," + LAYOUTSTR});
|
||||||
|
g_pEventManager->postEvent(SHyprIPCEvent{"activelayoutv2", pKeyboard->hlName + "||" + LAYOUTSTR});
|
||||||
EMIT_HOOK_EVENT("activeLayout", (std::vector<std::any>{pKeyboard, LAYOUTSTR}));
|
EMIT_HOOK_EVENT("activeLayout", (std::vector<std::any>{pKeyboard, LAYOUTSTR}));
|
||||||
|
|
||||||
g_pEventManager->postEvent(SHyprIPCEvent{"activelayoutv2", pKeyboard->hlName + ";" + LAYOUTSTR});
|
|
||||||
EMIT_HOOK_EVENT("activeLayoutv2", (std::vector<std::any>{pKeyboard, LAYOUTSTR}));
|
|
||||||
|
|
||||||
Debug::log(LOG, "Set the keyboard layout to {} and variant to {} for keyboard \"{}\"", pKeyboard->currentRules.layout, pKeyboard->currentRules.variant, pKeyboard->hlName);
|
Debug::log(LOG, "Set the keyboard layout to {} and variant to {} for keyboard \"{}\"", pKeyboard->currentRules.layout, pKeyboard->currentRules.variant, pKeyboard->hlName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1349,12 +1343,9 @@ void CInputManager::onKeyboardMod(SP<IKeyboard> pKeyboard) {
|
||||||
|
|
||||||
Debug::log(LOG, "LAYOUT CHANGED TO {} GROUP {}", LAYOUT, MODS.group);
|
Debug::log(LOG, "LAYOUT CHANGED TO {} GROUP {}", LAYOUT, MODS.group);
|
||||||
|
|
||||||
// NOTE: This block is deprecated.
|
|
||||||
g_pEventManager->postEvent(SHyprIPCEvent{"activelayout", pKeyboard->hlName + "," + LAYOUT});
|
g_pEventManager->postEvent(SHyprIPCEvent{"activelayout", pKeyboard->hlName + "," + LAYOUT});
|
||||||
|
g_pEventManager->postEvent(SHyprIPCEvent{"activelayoutv2", pKeyboard->hlName + "||" + LAYOUT});
|
||||||
EMIT_HOOK_EVENT("activeLayout", (std::vector<std::any>{pKeyboard, LAYOUT}));
|
EMIT_HOOK_EVENT("activeLayout", (std::vector<std::any>{pKeyboard, LAYOUT}));
|
||||||
|
|
||||||
g_pEventManager->postEvent(SHyprIPCEvent{"activelayoutv2", pKeyboard->hlName + ";" + LAYOUT});
|
|
||||||
EMIT_HOOK_EVENT("activeLayoutv2", (std::vector<std::any>{pKeyboard, LAYOUT}));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue