summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBenjamin Close <Benjamin.Close@clearchain.com>2009-03-27 16:44:15 +1030
committerPeter Hutterer <peter.hutterer@who-t.net>2009-04-24 15:28:33 +1000
commitfab563bf8f6b63906ce9d5a568c467425843265b (patch)
tree99be39dc9fd9589b8bb2e183deaf49c29cfc315e /include
parentccd28ca2ad40aecf951ab058d89062828e3e5d8a (diff)
input: propagate XTst events through virtual slave devices.
A XTest virtual slave device pair (kbd/ptr) exists for every master device pair. This is so XTest events are correctly propogated via slave devices up to Master devices and the classes are correctly changed along the way. We add the XTest slave device pair to the Virtual Core pointer and provide a simple way of creating the devices. A XTest Slave Device is identified by the XTstDevicePrivateKey property being set in the devices devProperties XI events are still propagated through the matching device, in the hope the client knows what it is doing. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'include')
-rw-r--r--include/input.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/input.h b/include/input.h
index b3bb5d1a5..56c3d2981 100644
--- a/include/input.h
+++ b/include/input.h
@@ -481,6 +481,10 @@ extern int generate_modkeymap(ClientPtr client, DeviceIntPtr dev,
KeyCode **modkeymap, int *max_keys_per_mod);
extern int change_modmap(ClientPtr client, DeviceIntPtr dev, KeyCode *map,
int max_keys_per_mod);
+extern int AllocXtstDevice(ClientPtr client,
+ char* name,
+ DeviceIntPtr* ptr,
+ DeviceIntPtr* keybd);
/* Implemented by the DDX. */
extern _X_EXPORT int NewInputDeviceRequest(