sane-input-handler: only inhibit controls if screen is on

This commit is contained in:
Colin 2024-03-17 21:40:07 +00:00
parent 05b37669e3
commit 63af94383b

View File

@ -209,16 +209,16 @@ dispatchInhibited() {
}
_isAllOn="$(isAllOn && echo 1 || true)"
_isInhibited="$(isInhibited && echo 1 || true)"
if [ -n "$_isInhibited" ]; then
dispatchInhibited
fi
if [ -n "$_isAllOn" ]; then
dispatchOn
else
if [ -z "$_isAllOn" ]; then
dispatchOff
else
_isInhibited="$(isInhibited && echo 1 || true)"
if [ -n "$_isInhibited" ]; then
dispatchInhibited
else
dispatchOn
fi
fi
dispatchDefault