mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-06 13:10:24 +01:00
[kdrive] Fix rotation of pointer
Rotation matrix for pointer coordinates was incomplete and pointers with absolute coordinates did not work correctly in xserver (kdrive) when the sceen was rotated other than by 0 degrees. Signed-off-by: David Jander <david.jander@protonic.nl> Signed-off-by: James Cloos <cloos@jhcloos.com>
This commit is contained in:
parent
4559d2ace6
commit
d9bf52b4ab
1 changed files with 2 additions and 2 deletions
|
|
@ -1918,8 +1918,8 @@ KdEnqueuePointerEvent(KdPointerInfo *pi, unsigned long flags, int rx, int ry,
|
|||
}
|
||||
else {
|
||||
if (pi->transformCoordinates) {
|
||||
x = matrix[0][0] * rx + matrix[0][1] * ry;
|
||||
y = matrix[1][0] * rx + matrix[1][1] * ry;
|
||||
x = matrix[0][0] * rx + matrix[0][1] * ry + matrix[0][2];
|
||||
y = matrix[1][0] * rx + matrix[1][1] * ry + matrix[1][2];
|
||||
}
|
||||
else {
|
||||
x = rx;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue