Minor Input:inhibitInput followup to #9065 (#9139)

* GestureDetector: Downgrade probeClockSource log messages to debug

We're seeing a bit more of 'em between autostandby and inhibitInput now,
and the whole thing was implemented long enough ago that it's no longer
critical to see this in random non-debug logs ;).

* Input: Reset gesture state in inhibitInput

Should prevent bogus gestures when re-enabling the handlers if we were
called in the middle of gesture detection.
This commit is contained in:
NiLuJe
2022-05-29 03:05:15 +02:00
committed by GitHub
parent 6804b77251
commit e1ac3c4853
3 changed files with 7 additions and 7 deletions

View File

@@ -1310,6 +1310,9 @@ function Input:inhibitInput(toggle)
self._generic_ev_handler = self.handleGenericEv
self.handleGenericEv = self.voidEv
end
-- Reset gesture detection state to a blank slate, to avoid bogus gesture detection on restore.
self:resetState()
else
-- Restore event handlers, if any
if self._key_ev_handler then