keybinds: use the triggering keyboard for repeat timings (#11309)

This commit is contained in:
Vaxry 2025-08-05 15:54:55 +02:00 committed by GitHub
parent 2be309de1d
commit 2859f1b795
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 20 additions and 18 deletions

View file

@ -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 = {};