summaryrefslogtreecommitdiff
path: root/src/managers/input/InputManager.cpp
diff options
context:
space:
mode:
authorvaxerski <vaxry@vaxry.net>2023-01-02 12:08:00 +0100
committervaxerski <vaxry@vaxry.net>2023-01-02 12:08:00 +0100
commit9ba93f4b0a56a8cec225b7719885da8bbfab1624 (patch)
tree91905f44724cc1432cefd00a44d7abb850beb84a /src/managers/input/InputManager.cpp
parent85d1b06a7962f007111727a2f2a550a128cec60d (diff)
fix double remove in destroyKeyboard
Diffstat (limited to 'src/managers/input/InputManager.cpp')
-rw-r--r--src/managers/input/InputManager.cpp5
1 files 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) {