From 9ba93f4b0a56a8cec225b7719885da8bbfab1624 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Mon, 2 Jan 2023 12:08:00 +0100 Subject: [PATCH] fix double remove in destroyKeyboard --- src/managers/input/InputManager.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index e53dfaf7..ec2446b1 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -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) {