Set the transformation matrix to the unity matrix to avoid spurious cursor
jumps (#852841)
This commit is contained in:
parent
5ec270cf59
commit
25c4b40ffb
32
0001-dix-set-the-device-transformation-matrix.patch
Normal file
32
0001-dix-set-the-device-transformation-matrix.patch
Normal file
@ -0,0 +1,32 @@
|
||||
From 171059409177652b9b7af31506dd8ee0e018330d Mon Sep 17 00:00:00 2001
|
||||
From: Peter Hutterer <peter.hutterer@who-t.net>
|
||||
Date: Thu, 20 Sep 2012 01:22:32 +1000
|
||||
Subject: [PATCH] dix: set the device transformation matrix
|
||||
|
||||
The property handler is registered after setting the property, so
|
||||
dev->transform remains as all-zeros. That causes pixman_f_transform_invert()
|
||||
to fail (transformAbsolute()) and invert remains as garbage. In some cases,
|
||||
this may then cause a cursor jump to 0,0.
|
||||
|
||||
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
||||
---
|
||||
dix/devices.c | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/dix/devices.c b/dix/devices.c
|
||||
index 46c759c..3cacbeb 100644
|
||||
--- a/dix/devices.c
|
||||
+++ b/dix/devices.c
|
||||
@@ -306,6 +306,9 @@ AddInputDevice(ClientPtr client, DeviceProc deviceProc, Bool autoStart)
|
||||
/* unity matrix */
|
||||
memset(transform, 0, sizeof(transform));
|
||||
transform[0] = transform[4] = transform[8] = 1.0f;
|
||||
+ dev->transform.m[0][0] = 1.0;
|
||||
+ dev->transform.m[1][1] = 1.0;
|
||||
+ dev->transform.m[2][2] = 1.0;
|
||||
|
||||
XIChangeDeviceProperty(dev, XIGetKnownProperty(XI_PROP_TRANSFORM),
|
||||
XIGetKnownProperty(XATOM_FLOAT), 32,
|
||||
--
|
||||
1.7.11.2
|
||||
|
@ -43,7 +43,7 @@
|
||||
Summary: X.Org X11 X server
|
||||
Name: xorg-x11-server
|
||||
Version: 1.13.0
|
||||
Release: 4%{?gitdate:.%{gitdate}}%{dist}
|
||||
Release: 5%{?gitdate:.%{gitdate}}%{dist}
|
||||
URL: http://www.x.org
|
||||
License: MIT
|
||||
Group: User Interface/X
|
||||
@ -115,6 +115,10 @@ Patch7053: 0001-scan-pci-after-probing-devices.patch
|
||||
|
||||
Patch7054: 0001-config-udev-ignore-change-on-drm-devices.patch
|
||||
|
||||
# Bug 852841 - Mouse jumps to edges / corners when using an absolute input
|
||||
# device (ie virtual machine usb tablet)
|
||||
Patch7055: 0001-dix-set-the-device-transformation-matrix.patch
|
||||
|
||||
%global moduledir %{_libdir}/xorg/modules
|
||||
%global drimoduledir %{_libdir}/dri
|
||||
%global sdkdir %{_includedir}/xorg
|
||||
@ -587,6 +591,10 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{xserver_source_dir}
|
||||
|
||||
%changelog
|
||||
* Thu Sep 20 2012 Peter Hutterer <peter.hutterer@redhat.com> 1.13.0-5
|
||||
- Set the transformation matrix to the unity matrix to avoid spurious cursor
|
||||
jumps (#852841)
|
||||
|
||||
* Fri Sep 14 2012 Dave Airlie <airlied@redhat.com> 1.13.0-4
|
||||
- fix bug when hotplugging a monitor causes oops
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user