If we're sending the event for a given device, make sure the deviceid is that of the device. This allows callers to use the same DCE for slave and master without having to fiddle the DCE's internal fields.
Signed-off-by: Peter Hutterer <[email protected]> --- Xi/exevents.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/Xi/exevents.c b/Xi/exevents.c index 2ae5a62..7afb69e 100644 --- a/Xi/exevents.c +++ b/Xi/exevents.c @@ -699,6 +699,7 @@ ChangeMasterDeviceClasses(DeviceIntPtr device, DeviceChangedEvent *dce) /* FIXME: the classes may have changed since we generated the event. */ DeepCopyDeviceClasses(slave, device, dce); + dce->deviceid = device->id; XISendDeviceChangedEvent(device, dce); } -- 1.7.6.4 _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
