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