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:
parent
989e36336b
commit
c183530b38
1 changed files with 1 additions and 3 deletions
|
@ -5,9 +5,7 @@
|
||||||
. "$(dirname "$0")/sxmo_common.sh"
|
. "$(dirname "$0")/sxmo_common.sh"
|
||||||
|
|
||||||
applyptrmatrix() {
|
applyptrmatrix() {
|
||||||
TOUCH_POINTER_ID="${TOUCH_POINTER_ID:-
|
TOUCH_POINTER_ID="${TOUCH_POINTER_ID:-8}"
|
||||||
(xinput | grep -iE 'touchscreen.+pointer' | grep -oE 'id=[0-9]+' | cut -d= -f2)
|
|
||||||
}"
|
|
||||||
xinput set-prop "$TOUCH_POINTER_ID" --type=float --type=float "Coordinate Transformation Matrix" "$@"
|
xinput set-prop "$TOUCH_POINTER_ID" --type=float --type=float "Coordinate Transformation Matrix" "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue