diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-01-12 15:29:36 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-01-13 09:22:56 +1000 |
commit | d36adf52a2b2711d22b11105f7bd907d4493fb9b (patch) | |
tree | 36fdb74e052820c60d797ed80d5627256937b686 /mi/miglblt.c | |
parent | 488d45295105daf10ccd17ca93ae6a6f4d0104f1 (diff) |
dix: fix WarpPointer calls for devices with custom valuator ranges (#19297)
If the MD's lastSlave was a devices with custom axes ranges, then a
WarpPointer would position the cursor at the wrong location. A WarpPointer
request provides screen coordinates and these coordinates were scaled to the
device range before warping.
This patch consists of two parts:
1) in the WarpPointer handling, get the lastSlave and post the event through
this device.
2) assume that WarpPointer coordinates are always in screen coordinates and
scale them to device coordinates in GPE before continuing. Note that this
breaks device-coordinate based XWarpDevicePointer calls (for which the spec
isn't nailed down yet anyway) until a better solution is found.
X.Org Bug 19297 <http://bugs.freedesktop.org/show_bug.cgi?id=19297>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'mi/miglblt.c')
0 files changed, 0 insertions, 0 deletions