From 3b55c64c2978cafcb20e26b73f9795c3c8b68c4d Mon Sep 17 00:00:00 2001 From: Pasha Fistanto Date: Mon, 12 Aug 2024 20:33:41 +0200 Subject: [PATCH] fix: change the separator to an escaped comma --- src/managers/input/InputManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index 38f4a05d..33708165 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -910,7 +910,7 @@ void CInputManager::setupKeyboard(SP keeb) { } g_pEventManager->postEvent(SHyprIPCEvent{"activelayout", PKEEB->hlName + "," + LAYOUT}); - g_pEventManager->postEvent(SHyprIPCEvent{"activelayoutv2", PKEEB->hlName + "||" + LAYOUT}); + g_pEventManager->postEvent(SHyprIPCEvent{"activelayoutv2", PKEEB->hlName + "\\," + LAYOUT}); EMIT_HOOK_EVENT("activeLayout", (std::vector{PKEEB, LAYOUT})); }, keeb.get()); @@ -976,7 +976,7 @@ void CInputManager::applyConfigToKeyboard(SP pKeyboard) { const auto LAYOUTSTR = pKeyboard->getActiveLayout(); g_pEventManager->postEvent(SHyprIPCEvent{"activelayout", pKeyboard->hlName + "," + LAYOUTSTR}); - g_pEventManager->postEvent(SHyprIPCEvent{"activelayoutv2", pKeyboard->hlName + "||" + LAYOUTSTR}); + g_pEventManager->postEvent(SHyprIPCEvent{"activelayoutv2", pKeyboard->hlName + "\\," + LAYOUTSTR}); EMIT_HOOK_EVENT("activeLayout", (std::vector{pKeyboard, LAYOUTSTR})); Debug::log(LOG, "Set the keyboard layout to {} and variant to {} for keyboard \"{}\"", pKeyboard->currentRules.layout, pKeyboard->currentRules.variant, pKeyboard->hlName); @@ -1344,7 +1344,7 @@ void CInputManager::onKeyboardMod(SP pKeyboard) { Debug::log(LOG, "LAYOUT CHANGED TO {} GROUP {}", LAYOUT, MODS.group); g_pEventManager->postEvent(SHyprIPCEvent{"activelayout", pKeyboard->hlName + "," + LAYOUT}); - g_pEventManager->postEvent(SHyprIPCEvent{"activelayoutv2", pKeyboard->hlName + "||" + LAYOUT}); + g_pEventManager->postEvent(SHyprIPCEvent{"activelayoutv2", pKeyboard->hlName + "\\," + LAYOUT}); EMIT_HOOK_EVENT("activeLayout", (std::vector{pKeyboard, LAYOUT})); } }