diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-05-21 08:29:14 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-05-22 15:44:57 +1000 |
commit | d79318f269d959d566ec66239b4c985afd61b259 (patch) | |
tree | 9f131d45761880fa2d9e265fd852c012d28bec08 /dix/getevents.c | |
parent | eeffb83fea2d87070beafd0c692fb0ad54d8335b (diff) |
dix: Add a deviceid to the DeviceChangedEvent.
ChangeDeviceId would actually overwrite the flags field if deviceid wasn't
present. Aside from the event of course not telling which device generated
it in the first place.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'dix/getevents.c')
-rw-r--r-- | dix/getevents.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dix/getevents.c b/dix/getevents.c index 5ff4f91b9..ff249c803 100644 --- a/dix/getevents.c +++ b/dix/getevents.c @@ -195,6 +195,7 @@ CreateClassesChangedEvent(EventList* event, dce = (DeviceChangedEvent*)event->event; memset(dce, 0, sizeof(DeviceChangedEvent)); + dce->deviceid = master->id; dce->header = ET_Internal; dce->length = sizeof(DeviceChangedEvent); dce->type = ET_DeviceChanged; |