remove init_event
The function is identical to init_device_event from inpututils.c with the first two arguments swapped. Signed-off-by: Thomas Jaeger <ThJaeger@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
710065da37
commit
aa9da5eae1
|
@ -163,17 +163,6 @@ key_autorepeats(DeviceIntPtr pDev, int key_code)
|
||||||
(1 << (key_code & 7)));
|
(1 << (key_code & 7)));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
init_event(DeviceIntPtr dev, DeviceEvent *event, Time ms)
|
|
||||||
{
|
|
||||||
memset(event, 0, sizeof(DeviceEvent));
|
|
||||||
event->header = ET_Internal;
|
|
||||||
event->length = sizeof(DeviceEvent);
|
|
||||||
event->time = ms;
|
|
||||||
event->deviceid = dev->id;
|
|
||||||
event->sourceid = dev->id;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
init_touch_ownership(DeviceIntPtr dev, TouchOwnershipEvent *event, Time ms)
|
init_touch_ownership(DeviceIntPtr dev, TouchOwnershipEvent *event, Time ms)
|
||||||
{
|
{
|
||||||
|
@ -1915,7 +1904,7 @@ GetTouchEvents(InternalEvent *events, DeviceIntPtr dev, uint32_t ddx_touchid,
|
||||||
event = &events->device_event;
|
event = &events->device_event;
|
||||||
num_events++;
|
num_events++;
|
||||||
|
|
||||||
init_event(dev, event, ms);
|
init_device_event(event, dev, ms);
|
||||||
/* if submitted for master device, get the sourceid from there */
|
/* if submitted for master device, get the sourceid from there */
|
||||||
if (flags & TOUCH_CLIENT_ID) {
|
if (flags & TOUCH_CLIENT_ID) {
|
||||||
event->sourceid = touchpoint.dix_ti->sourceid;
|
event->sourceid = touchpoint.dix_ti->sourceid;
|
||||||
|
|
Loading…
Reference in New Issue