mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-28 21:33:09 +00:00
input: replace EventListPtr with InternalEvent array
EventListPtr is a relic from pre-1.6, when we had protocol events in the event queue and thus events of varying size. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
This commit is contained in:
parent
e7150db535
commit
8670c46bdf
16 changed files with 85 additions and 145 deletions
|
|
@ -1351,7 +1351,7 @@ static void
|
|||
InjectPointerKeyEvents(DeviceIntPtr dev, int type, int button, int flags, ValuatorMask *mask)
|
||||
{
|
||||
ScreenPtr pScreen;
|
||||
EventListPtr events;
|
||||
InternalEvent* events;
|
||||
int nevents, i;
|
||||
DeviceIntPtr ptr, mpointer, lastSlave = NULL;
|
||||
Bool saveWait;
|
||||
|
|
@ -1377,7 +1377,7 @@ InjectPointerKeyEvents(DeviceIntPtr dev, int type, int button, int flags, Valuat
|
|||
OsReleaseSignals();
|
||||
|
||||
for (i = 0; i < nevents; i++)
|
||||
mieqProcessDeviceEvent(ptr, (InternalEvent*)events[i].event, NULL);
|
||||
mieqProcessDeviceEvent(ptr, &events[i], NULL);
|
||||
|
||||
FreeEventList(events, GetMaximumEventsNum());
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue