Public bug reported:

As far as I know, this upstream bug fix for <a
href="https://bugs.freedesktop.org/show_bug.cgi?id=46976";>Xserver 1.11+
reports absolute valuator.values for relative devices</a> leaves some
wine games (and possibly other programs) with erratic mouse movement.
The patch is included here: <a
href="http://patchwork.freedesktop.org/patch/9595/";>dix: set raw event
values before adding up relative values (#46976)</a>.  Any chance of a
rebuild including this fix?

Copy of patch (probably won't work unless spacing is fixed):

diff --git a/dix/getevents.c b/dix/getevents.c
index 5b9cef3..fd5998d 100644
--- a/dix/getevents.c
+++ b/dix/getevents.c
@@ -1311,17 +1311,18 @@  fill_pointer_events(InternalEvent *events, 
DeviceIntPtr pDev, int type,
 
         transformAbsolute(pDev, &mask);
         clipAbsolute(pDev, &mask);
+        if ((flags & POINTER_NORAW) == 0)
+            set_raw_valuators(raw, &mask, raw->valuators.data);
     } else {
         if (flags & POINTER_ACCELERATE)
             accelPointer(pDev, &mask, ms);
+        if ((flags & POINTER_NORAW) == 0)
+            set_raw_valuators(raw, &mask, raw->valuators.data);
+
         moveRelative(pDev, &mask);
     }
 
     /* valuators are in device coordinate system in absolute coordinates */
-
-    if ((flags & POINTER_NORAW) == 0)
-        set_raw_valuators(raw, &mask, raw->valuators.data);
-
     scale_to_desktop(pDev, &mask, &devx, &devy, &screenx, &screeny);
     scr = positionSprite(pDev, (flags & POINTER_ABSOLUTE) ? Absolute : 
Relative,
                          &mask, &devx, &devy, &screenx, &screeny);

** Affects: xserver-xorg-input-evdev (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1313503

Title:
  Erratic movement in some wine games in 12.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-evdev/+bug/1313503/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to