sane-input-handler: only inhibit controls if screen is on
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user