From d79318f269d959d566ec66239b4c985afd61b259 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 21 May 2009 08:29:14 +1000 Subject: 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 --- dix/getevents.c | 1 + 1 file changed, 1 insertion(+) (limited to 'dix') 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; -- cgit v1.2.3