mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-10-29 19:34:47 +00:00
input: focus when first keyboard is added and m_lastFocus is set (#11645)
This commit is contained in:
parent
150d693fe7
commit
b8cff8a434
@ -1031,6 +1031,10 @@ void CInputManager::setupKeyboard(SP<IKeyboard> keeb) {
|
||||
g_pSeatManager->setKeyboard(keeb);
|
||||
|
||||
keeb->updateLEDs();
|
||||
|
||||
// in case m_lastFocus was set without a keyboard
|
||||
if (m_keyboards.size() == 1 && g_pCompositor->m_lastFocus)
|
||||
g_pSeatManager->setKeyboardFocus(g_pCompositor->m_lastFocus.lock());
|
||||
}
|
||||
|
||||
void CInputManager::setKeyboardLayout() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user