Sorry, apparently the above patch was already added to the proper,
xserver-xorg-core package.

** Changed in: xserver-xorg-input-evdev (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to xserver-xorg-input-evdev in Ubuntu.
https://bugs.launchpad.net/bugs/1313503

Title:
  Erratic movement in some wine games in 12.04

Status in “xserver-xorg-input-evdev” package in Ubuntu:
  Invalid

Bug description:
  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);

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to