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)"
|
_isAllOn="$(isAllOn && echo 1 || true)"
|
||||||
_isInhibited="$(isInhibited && echo 1 || true)"
|
|
||||||
|
|
||||||
if [ -n "$_isInhibited" ]; then
|
if [ -z "$_isAllOn" ]; then
|
||||||
dispatchInhibited
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "$_isAllOn" ]; then
|
|
||||||
dispatchOn
|
|
||||||
else
|
|
||||||
dispatchOff
|
dispatchOff
|
||||||
|
else
|
||||||
|
_isInhibited="$(isInhibited && echo 1 || true)"
|
||||||
|
if [ -n "$_isInhibited" ]; then
|
||||||
|
dispatchInhibited
|
||||||
|
else
|
||||||
|
dispatchOn
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dispatchDefault
|
dispatchDefault
|
||||||
|
|
Loading…
Reference in New Issue
Block a user