dix: don't XWarpPointer through the last slave anymore (#38313)
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 29 Jul 2011 06:33:54 +0000 (16:33 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Fri, 14 Oct 2011 05:35:33 +0000 (15:35 +1000)
commitbbe6a69da398dba93679c23c3c50f9916cb562ca
treeb4f8684a37938e5660726d05a2352e911ffd0913
parent2e28ff155ffc30707d42d885d5f6fc891bc82252
dix: don't XWarpPointer through the last slave anymore (#38313)

This line was introduced pre-1.6 to fix Bug 19297. The effect of warping
through the VCP then was that if a device had custom valuator ranges, the
warp position would be wrong. The better device for this effect is the the
XTest device.

This fixes a server crash where the lastSlave is a pointer device without
valuators (Bug 38313#0).

And while we're at it, make sure the Xinerama code-path does the same.

X.Org Bug 38313 <http://bugs.freedesktop.org/show_bug.cgi?id=38313>

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
(cherry picked from commit 2bfb802839688ecf328119c4c6979390fc60348d)
dix/events.c