diff options
| author | Vaxry <vaxry@vaxry.net> | 2025-12-26 16:08:31 +0100 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2025-12-26 16:08:31 +0100 |
| commit | 33df518f97b930316742736ecb07dc322da4c5d3 (patch) | |
| tree | 972623bb32497c97fb7b2444df8276e821086c2b /src/managers/input/InputManager.cpp | |
| parent | 9ea565054a7496aeccf61811cb75efdb4196e551 (diff) | |
input: fix pending perm keyboards being enabled
fixes #12359
Diffstat (limited to 'src/managers/input/InputManager.cpp')
| -rw-r--r-- | src/managers/input/InputManager.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index 746b6acf..73da6df4 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -1088,7 +1088,12 @@ void CInputManager::applyConfigToKeyboard(SP<IKeyboard> pKeyboard) { pKeyboard->m_allowBinds = ALLOWBINDS; const auto PERM = g_pDynamicPermissionManager->clientPermissionModeWithString(-1, pKeyboard->m_hlName, PERMISSION_TYPE_KEYBOARD); + if (PERM == PERMISSION_RULE_ALLOW_MODE_PENDING) { + + // disallow while pending + pKeyboard->m_allowed = false; + const auto PROMISE = g_pDynamicPermissionManager->promiseFor(-1, pKeyboard->m_hlName, PERMISSION_TYPE_KEYBOARD); if (!PROMISE) Log::logger->log(Log::ERR, "BUG THIS: No promise for client permission for keyboard"); |
