summaryrefslogtreecommitdiff
path: root/src/managers/input/InputManager.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-05-17 19:28:33 +0100
committerVaxry <vaxry@vaxry.net>2024-05-17 19:28:33 +0100
commit23cd4c7998cc4308e5db9b64994ebd6b27c38877 (patch)
tree63b2400a2851fb167fd21a6363b16b3b66ce17ec /src/managers/input/InputManager.cpp
parent0cb8fbe18e45936ef3e3c6f82fcd200affc9fb13 (diff)
seat: update keymap/repeat info on keymap events from keebs
fixes #6114
Diffstat (limited to 'src/managers/input/InputManager.cpp')
-rw-r--r--src/managers/input/InputManager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp
index 58e5ad17..e05520f4 100644
--- a/src/managers/input/InputManager.cpp
+++ b/src/managers/input/InputManager.cpp
@@ -839,6 +839,9 @@ void CInputManager::setupKeyboard(SP<IKeyboard> keeb) {
auto PKEEB = ((IKeyboard*)owner)->self.lock();
const auto LAYOUT = PKEEB->getActiveLayout();
+ if (PKEEB == g_pSeatManager->keyboard)
+ g_pSeatManager->updateActiveKeyboardData();
+
g_pEventManager->postEvent(SHyprIPCEvent{"activelayout", PKEEB->hlName + "," + LAYOUT});
EMIT_HOOK_EVENT("activeLayout", (std::vector<std::any>{PKEEB, LAYOUT}));
},