input: remove DDX event list handling

The current approach to event posting required the DDX to request the event
list (allocated by the DIX) and then pass that list into QueuePointerEvent
and friends.

Remove this step and use the DIX event list directly. This means that
QueuePointerEvent is not reentrant but it wasn't before anyway.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
This commit is contained in:
Peter Hutterer 2011-04-15 10:07:10 +10:00
commit 20fb07f436
14 changed files with 46 additions and 101 deletions

View file

@ -99,8 +99,6 @@
return; \
}
InternalEvent* xf86Events = NULL;
static int
xf86InputDevicePostInit(DeviceIntPtr dev);
@ -1049,7 +1047,7 @@ xf86PostMotionEventM(DeviceIntPtr device,
}
#endif
QueuePointerEvents(xf86Events, device, MotionNotify, 0, flags, mask);
QueuePointerEvents(device, MotionNotify, 0, flags, mask);
}
void
@ -1094,8 +1092,7 @@ xf86PostProximityEventM(DeviceIntPtr device,
int is_in,
const ValuatorMask *mask)
{
QueueProximityEvents(xf86Events, device,
is_in ? ProximityIn : ProximityOut, mask);
QueueProximityEvents(device, is_in ? ProximityIn : ProximityOut, mask);
}
void
@ -1166,7 +1163,7 @@ xf86PostButtonEventM(DeviceIntPtr device,
}
#endif
QueuePointerEvents(xf86Events, device,
QueuePointerEvents(device,
is_down ? ButtonPress : ButtonRelease, button,
flags, mask);
}
@ -1233,7 +1230,7 @@ xf86PostKeyEventM(DeviceIntPtr device,
}
#endif
QueueKeyboardEvents(xf86Events, device,
QueueKeyboardEvents(device,
is_down ? KeyPress : KeyRelease,
key_code, mask);
}