Xi: ensure the deviceid for DeviceChangedEvents is always the right one
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 19 Oct 2011 02:11:16 +0000 (12:11 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 25 Oct 2011 04:06:41 +0000 (14:06 +1000)
commitd77dec6971e4a0b306c8dbd5adf627908d7972cb
tree3076622955577669cf687627133ee62d0b43c09d
parente9dee21fa3213bfe87b2b728a38eb41d3ba0e664
Xi: ensure the deviceid for DeviceChangedEvents is always the right one

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 <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Xi/exevents.c