diff options
| author | Can <45462997+yungcxn@users.noreply.github.com> | 2024-05-24 20:58:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-24 20:58:26 +0200 |
| commit | ce17961aad6f9164e5d026d19efd42b07b123bff (patch) | |
| tree | 0bd5c9ea8da8a777734baa57fa301bdb5580511c /src/managers/input/InputManager.cpp | |
| parent | 6d67b84469d5c12c5bbc4880f327ca8eb7a2ed2d (diff) | |
keybinds: Added new dispatcher (sendshortcut) (#6174)
Diffstat (limited to 'src/managers/input/InputManager.cpp')
| -rw-r--r-- | src/managers/input/InputManager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index f4f97236..52927d95 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -842,8 +842,10 @@ void CInputManager::setupKeyboard(SP<IKeyboard> keeb) { auto PKEEB = ((IKeyboard*)owner)->self.lock(); const auto LAYOUT = PKEEB->getActiveLayout(); - if (PKEEB == g_pSeatManager->keyboard) + if (PKEEB == g_pSeatManager->keyboard) { g_pSeatManager->updateActiveKeyboardData(); + g_pKeybindManager->m_mKeyToCodeCache.clear(); + } g_pEventManager->postEvent(SHyprIPCEvent{"activelayout", PKEEB->hlName + "," + LAYOUT}); EMIT_HOOK_EVENT("activeLayout", (std::vector<std::any>{PKEEB, LAYOUT})); |
