summaryrefslogtreecommitdiff
path: root/xkb/ddxDevBtn.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2006-11-21 18:15:04 +1030
committerPeter Hutterer <whot@hyena.localdomain>2006-11-21 18:15:04 +1030
commit9db851c22d4befb95bfb074b96620261d8e32ac9 (patch)
treeb12f93f7ca5f37f966cee84f92849dcda0fb6c01 /xkb/ddxDevBtn.c
parentfd8b9a6eaee28a453a00af14195b81ef1890a577 (diff)
dix: moved sprite from static to be pointer of type SpritePtr
added SpriteRecs for MPX devices changed sprite dependency and added MPX functionality to parts of events.c (ConfineToShape, PostNewCursor, XineramaCheckMotion, CheckMotion, XineramaChangeToCursor, ChangeToCursor, CheckPhysLimits, PointerConfinedToScreen) added DeviceIntRec param to GetSpritePosition(). This required some minor changes in ddx, xtest, xkb and xfixes. mi: changed miPointer to pointer instead of static struct.
Diffstat (limited to 'xkb/ddxDevBtn.c')
-rw-r--r--xkb/ddxDevBtn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xkb/ddxDevBtn.c b/xkb/ddxDevBtn.c
index 3de8f8721..dd7d4459c 100644
--- a/xkb/ddxDevBtn.c
+++ b/xkb/ddxDevBtn.c
@@ -60,7 +60,7 @@ int nAxes, i, count;
if (nAxes > 6)
nAxes = 6;
- GetSpritePosition(&x,&y);
+ GetSpritePosition(dev, &x,&y);
btn= (deviceKeyButtonPointer *) &events[0];
val= (deviceValuator *) &events[1];
if (press) btn->type= DeviceButtonPress;