Fix rotation while simplifying id detection.

We hardcode the default pinephone screen input id as we now can override
it by device.
master
Stacy Harper 4 years ago
parent 989e36336b
commit c183530b38
No known key found for this signature in database
GPG Key ID: 5BAC92328B7C5D65
  1. 4
      scripts/core/sxmo_rotate.sh

@ -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…
Cancel
Save