diff options
author | vaxerski <[email protected]> | 2024-01-19 19:06:36 +0100 |
---|---|---|
committer | vaxerski <[email protected]> | 2024-01-19 19:09:32 +0100 |
commit | b86ed02d8ae7c955e1f42cc27a19fe18d82c50b7 (patch) | |
tree | 8d2993cfb2b605bc7806b205ee645613b6819335 | |
parent | 17339e0ae9ad01dcfdede76e8dfaf516a8cbb924 (diff) | |
download | Hyprland-b86ed02d8ae7c955e1f42cc27a19fe18d82c50b7.tar.gz Hyprland-b86ed02d8ae7c955e1f42cc27a19fe18d82c50b7.zip |
keybinds: avoid duplicated held keys, only use last, remove all
ref #4471
-rw-r--r-- | src/managers/KeybindManager.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index ead94ed9..a08c95f5 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -349,7 +349,6 @@ bool CKeybindManager::onKeyEvent(wlr_keyboard_key_event* e, SKeyboard* pKeyboard foundInPressedKeys = true; suppressEvent = !it->sent; it = m_dPressedKeys.erase(it); - break; } else { ++it; } @@ -432,7 +431,6 @@ bool CKeybindManager::onMouseEvent(wlr_pointer_button_event* e) { foundInPressedKeys = true; suppressEvent = !it->sent; it = m_dPressedKeys.erase(it); - break; } else { ++it; } |