fix double remove in destroyKeyboard

This commit is contained in:
Vaxry 2023-01-02 12:08:00 +01:00
parent 85d1b06a79
commit 9ba93f4b0a

View file

@ -814,9 +814,8 @@ void CInputManager::destroyKeyboard(SKeyboard* pKeyboard) {
} else {
m_pActiveKeyboard = nullptr;
}
}
m_lKeyboards.remove(*pKeyboard);
} else
m_lKeyboards.remove(*pKeyboard);
}
void CInputManager::destroyMouse(wlr_input_device* mouse) {