diff options
| author | Vaxry <vaxry@vaxry.net> | 2025-07-29 17:25:27 +0200 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2025-07-29 17:25:27 +0200 |
| commit | 745a671ce69603c0e52c726859f2b9a4e1632d80 (patch) | |
| tree | 34fe6f6304a081db661bac598019421c9cb6536c /src/managers/input/InputManager.cpp | |
| parent | abe29647ae9cf2e6bd40784790b3d99fcc962613 (diff) | |
input: don't reload xkb configs if settings didnt change
fixes #9105
Diffstat (limited to 'src/managers/input/InputManager.cpp')
| -rw-r--r-- | src/managers/input/InputManager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index eb941502..6c23c493 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -1070,9 +1070,9 @@ void CInputManager::applyConfigToKeyboard(SP<IKeyboard> pKeyboard) { pKeyboard->m_allowed = PERM == PERMISSION_RULE_ALLOW_MODE_ALLOW; try { - if (NUMLOCKON == pKeyboard->m_numlockOn && REPEATDELAY == pKeyboard->m_repeatDelay && REPEATRATE == pKeyboard->m_repeatRate && !RULES.empty() && - RULES == pKeyboard->m_currentRules.rules && MODEL == pKeyboard->m_currentRules.model && LAYOUT == pKeyboard->m_currentRules.layout && - VARIANT == pKeyboard->m_currentRules.variant && OPTIONS == pKeyboard->m_currentRules.options && FILEPATH == pKeyboard->m_xkbFilePath) { + if (NUMLOCKON == pKeyboard->m_numlockOn && REPEATDELAY == pKeyboard->m_repeatDelay && REPEATRATE == pKeyboard->m_repeatRate && RULES == pKeyboard->m_currentRules.rules && + MODEL == pKeyboard->m_currentRules.model && LAYOUT == pKeyboard->m_currentRules.layout && VARIANT == pKeyboard->m_currentRules.variant && + OPTIONS == pKeyboard->m_currentRules.options && FILEPATH == pKeyboard->m_xkbFilePath) { Debug::log(LOG, "Not applying config to keyboard, it did not change."); return; } |
