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>
This commit is contained in:
parent
eeffb83fea
commit
d79318f269
|
@ -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;
|
||||
|
|
|
@ -125,6 +125,7 @@ typedef struct
|
|||
int type; /**< ET_DeviceChanged */
|
||||
int length; /**< Length in bytes */
|
||||
Time time; /**< Time in ms */
|
||||
int deviceid; /**< Device whose capabilities have changed */
|
||||
int flags; /**< Mask of ::HAS_OLD_SLAVE or ::HAS_NEW_SLAVE */
|
||||
/** If flags & HAS_OLD_SLAVE is set, old_slaveid specifies SD previously
|
||||
* attached to this device. */
|
||||
|
|
Loading…
Reference in New Issue
Block a user