input: don't post idle activity when keyboard is not enabled

This commit is contained in:
Maximilian Seidler 2024-09-05 19:16:58 +02:00
parent 4c9607e78e
commit d257da285f

View file

@ -877,6 +877,7 @@ void CInputManager::setupKeyboard(SP<IKeyboard> keeb) {
onKeyboardKey(data, PKEEB);
if (PKEEB->enabled)
PROTO::idle->onActivity();
},
keeb.get());
@ -887,6 +888,7 @@ void CInputManager::setupKeyboard(SP<IKeyboard> keeb) {
onKeyboardMod(PKEEB);
if (PKEEB->enabled)
PROTO::idle->onActivity();
},
keeb.get());