summaryrefslogtreecommitdiff
path: root/dix/getevents.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-07-13 15:09:38 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-07-15 10:36:30 +1000
commitd040af7fa3c7314917414a28d723bdda3c4289c3 (patch)
tree8dd6d00a1c3e97477d3d87083193feb8948f0898 /dix/getevents.c
parent81b64f668541217c1c9518ac4a7e3fdf0a6e4002 (diff)
Update to type-specific raw events - require inputproto 1.9.99.14.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'dix/getevents.c')
-rw-r--r--dix/getevents.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/dix/getevents.c b/dix/getevents.c
index fcac056aa..13e7576a8 100644
--- a/dix/getevents.c
+++ b/dix/getevents.c
@@ -138,14 +138,12 @@ init_event(DeviceIntPtr dev, DeviceEvent* event, Time ms)
}
static void
-init_raw(DeviceIntPtr dev, RawDeviceEvent *event, Time ms, int subtype,
- int detail)
+init_raw(DeviceIntPtr dev, RawDeviceEvent *event, Time ms, int type, int detail)
{
memset(event, 0, sizeof(RawDeviceEvent));
event->header = ET_Internal;
event->length = sizeof(RawDeviceEvent);
- event->type = ET_Raw;
- event->subtype = subtype;
+ event->type = ET_RawKeyPress - ET_KeyPress + type;
event->time = ms;
event->deviceid = dev->id;
event->sourceid = dev->id;