dix: remove ConvertBackToXI.
This was a temporary solution for the internal-events rework and is not needed anymore. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
26cf709e71
commit
a180c23679
|
@ -327,26 +327,3 @@ GetXIType(InternalEvent *event)
|
||||||
return xitype;
|
return xitype;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* FIXME: A temporary solution to make the server bisectable. Take the event
|
|
||||||
* @event and copy it into @ev, returning the number of events in @ev.
|
|
||||||
*/
|
|
||||||
int
|
|
||||||
ConvertBackToXI(InternalEvent *event, xEvent *ev)
|
|
||||||
{
|
|
||||||
int count = 0;
|
|
||||||
int evlen, i;
|
|
||||||
xEvent *xi = NULL;
|
|
||||||
|
|
||||||
|
|
||||||
if (EventToXI(event, &xi, &count))
|
|
||||||
ErrorF("[dix] conversion to XI failed\n");
|
|
||||||
|
|
||||||
if (xi->u.u.type == GenericEvent)
|
|
||||||
evlen = (GEV(xi))->length * 4 + 32;
|
|
||||||
else
|
|
||||||
evlen = count * 32;
|
|
||||||
for (i = 0; i < count; i++)
|
|
||||||
memcpy(&ev[i], &xi[i], evlen);
|
|
||||||
return count;
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user