Fix rotation while simplifying id detection.

We hardcode the default pinephone screen input id as we now can override
it by device.
This commit is contained in:
Stacy Harper 2021-05-20 13:49:22 +02:00
parent 989e36336b
commit c183530b38
No known key found for this signature in database
GPG key ID: 5BAC92328B7C5D65

View file

@ -5,9 +5,7 @@
. "$(dirname "$0")/sxmo_common.sh"
applyptrmatrix() {
TOUCH_POINTER_ID="${TOUCH_POINTER_ID:-
(xinput | grep -iE 'touchscreen.+pointer' | grep -oE 'id=[0-9]+' | cut -d= -f2)
}"
TOUCH_POINTER_ID="${TOUCH_POINTER_ID:-8}"
xinput set-prop "$TOUCH_POINTER_ID" --type=float --type=float "Coordinate Transformation Matrix" "$@"
}