keybinds: Added new dispatcher (sendshortcut) (#6174)
This commit is contained in:
parent
6d67b84469
commit
ce17961aad
7 changed files with 174 additions and 9 deletions
|
|
@ -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}));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue