mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-02 17:26:00 +01:00
input: don't post idle activity when keyboard is not enabled
This commit is contained in:
parent
4c9607e78e
commit
d257da285f
1 changed files with 4 additions and 2 deletions
|
@ -877,7 +877,8 @@ void CInputManager::setupKeyboard(SP<IKeyboard> keeb) {
|
|||
|
||||
onKeyboardKey(data, PKEEB);
|
||||
|
||||
PROTO::idle->onActivity();
|
||||
if (PKEEB->enabled)
|
||||
PROTO::idle->onActivity();
|
||||
},
|
||||
keeb.get());
|
||||
|
||||
|
@ -887,7 +888,8 @@ void CInputManager::setupKeyboard(SP<IKeyboard> keeb) {
|
|||
|
||||
onKeyboardMod(PKEEB);
|
||||
|
||||
PROTO::idle->onActivity();
|
||||
if (PKEEB->enabled)
|
||||
PROTO::idle->onActivity();
|
||||
},
|
||||
keeb.get());
|
||||
|
||||
|
|
Loading…
Reference in a new issue