SIGN IN SIGN UP

osc: reset input handling state on a change in visibility mode

Currently, the activation and deactivation of input handling is done
inside the render() loop, but this does not run when the osc mode is
`never` - which does make sense.

That means that if you are cycling the visibility mode, the input
state will be whatever it was at the time of the mode change. And,
as our modes are ordered `auto` -> `always` -> `never`, the input
state will be enabled when you cycle to `never`.

There are various ways you can imagine fixing this, and in this
change I propose we reset the input state to disabled on a mode
change, and then let render() re-enable input if that's appropriate.

Fixes #7298.
P
Philip Langdale committed
daa125cb459f75378905673e2f8ee8d9341d19e6
Parent: 5feee11
Committed by Philip Langdale <github.philipl@overt.org> on 1/2/2020, 3:32:57 PM