summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-02-20 16:07:33 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-03-20 15:17:55 +1000
commit38bba0c1b75b84e8bbdfa7975cf701a9414a3afd (patch)
tree8d9f6b47c58b93f123e9b2966b6997061e1c4089 /include
parent181e41511d5772962b8bc998a1940d2a9ba62d5e (diff)
Xi: Change ChangeMasterDeviceClasses to new XI2 events.
Split ChangeMasterDeviceClasses into an extra XISendDeviceChangedEvent that assembles the XI2 wire event for the DeviceChanged event. Re-use this when detaching the last SD. Not quite perfect yet, we still copy the device classes from the slave now rather than from the data we had when the event occured. But it's a start. (We can now unexport SizeDeviceInfo and CopySwapDevices, not needed anymore) Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'include')
-rw-r--r--include/exevents.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/exevents.h b/include/exevents.h
index d09ad3c5b..4ee7084ef 100644
--- a/include/exevents.h
+++ b/include/exevents.h
@@ -250,4 +250,8 @@ extern _X_EXPORT int XIPropToFloat(
* would it merely be irrelevant and confusing? */
extern _X_EXPORT int XIShouldNotify(ClientPtr client, DeviceIntPtr dev);
+extern void
+XISendDeviceChangedEvent(DeviceIntPtr device, DeviceIntPtr master,
+ DeviceChangedEvent *dce);
+
#endif /* EXEVENTS_H */