summaryrefslogtreecommitdiff
path: root/src/managers/KeybindManager.hpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2025-08-05 15:54:55 +0200
committerGitHub <noreply@github.com>2025-08-05 15:54:55 +0200
commit2859f1b795e1e772e9fc2132708ae03cd23ca39b (patch)
tree2dcaf6734b1620e1344638942f8bf2cb42c7acfd /src/managers/KeybindManager.hpp
parent2be309de1df5e4262175fbcc58e6dd8de4e0e6d3 (diff)
keybinds: use the triggering keyboard for repeat timings (#11309)
Diffstat (limited to 'src/managers/KeybindManager.hpp')
-rw-r--r--src/managers/KeybindManager.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/managers/KeybindManager.hpp b/src/managers/KeybindManager.hpp
index 7b767d1a..2272aa8f 100644
--- a/src/managers/KeybindManager.hpp
+++ b/src/managers/KeybindManager.hpp
@@ -124,6 +124,7 @@ class CKeybindManager {
SP<CEventLoopTimer> m_longPressTimer;
SP<CEventLoopTimer> m_repeatKeyTimer;
+ uint32_t m_repeatKeyRate = 50;
uint32_t m_timeLastMs = 0;
uint32_t m_lastCode = 0;
@@ -135,7 +136,7 @@ class CKeybindManager {
CTimer m_scrollTimer;
- SDispatchResult handleKeybinds(const uint32_t, const SPressedKeyWithMods&, bool);
+ SDispatchResult handleKeybinds(const uint32_t, const SPressedKeyWithMods&, bool, SP<IKeyboard>);
std::set<xkb_keysym_t> m_mkKeys = {};
std::set<xkb_keysym_t> m_mkMods = {};