diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-02-25 15:53:29 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-03-11 14:26:04 +1000 |
commit | 6be974ec5597ef37fbd3a6057d52a38356f544e0 (patch) | |
tree | 5db0f6322dde1b6f9bc7e4f806b8f89c1a8ec33d /include | |
parent | 60b2d114d06617ca60c2905373829299dc051c7f (diff) |
Fix the already existing XI2 calls to the new XI2 protocol. FIXME
FIXME: not bisectable due to XiSelectInput.
This includes namespacing them with an XI2 prefix.
Affected calls:
XIGetClientPointer
XISetClientPointer
XIDefineDeviceCursor
XIUndefineDeviceCursor
XIWarpDevicePointer
XIQueryDevicePointer
XIChangeDeviceHierarchy (+ event)
Diffstat (limited to 'include')
-rw-r--r-- | include/X11/extensions/XInput2.h | 37 |
1 files changed, 21 insertions, 16 deletions
diff --git a/include/X11/extensions/XInput2.h b/include/X11/extensions/XInput2.h index 70d40b3..69cf6a8 100644 --- a/include/X11/extensions/XInput2.h +++ b/include/X11/extensions/XInput2.h @@ -39,7 +39,7 @@ typedef struct { char* name; Bool sendCore; Bool enable; -} XCreateMasterInfo; +} XICreateMasterInfo; typedef struct { int type; @@ -47,25 +47,30 @@ typedef struct { int returnMode; /* AttachToMaster, Floating */ XDevice* returnPointer; XDevice* returnKeyboard; -} XRemoveMasterInfo; +} XIRemoveMasterInfo; typedef struct { int type; XDevice* device; - int changeMode; /* AttachToMaster, Floating */ XDevice* newMaster; -} XChangeAttachmentInfo; +} XIAttachSlaveInfo; + +typedef struct { + int type; + XDevice* device; +} XIDetachSlaveInfo; typedef union { int type; /* must be first element */ - XCreateMasterInfo create; - XRemoveMasterInfo remove; - XChangeAttachmentInfo change; -} XAnyHierarchyChangeInfo; + XICreateMasterInfo create; + XIRemoveMasterInfo remove; + XIAttachSlaveInfo attach; + XIDetachSlaveInfo detach; +} XIAnyHierarchyChangeInfo; _XFUNCPROTOBEGIN -extern Bool XQueryDevicePointer( +extern Bool XIQueryDevicePointer( Display* /* display */, XDevice* /* device */, Window /* win */, @@ -78,7 +83,7 @@ extern Bool XQueryDevicePointer( unsigned int* /* mask */ ); -extern Bool XWarpDevicePointer( +extern Bool XIWarpDevicePointer( Display* /* display */, XDevice* /* device */, Window /* src_win */, @@ -91,32 +96,32 @@ extern Bool XWarpDevicePointer( int /* dst_y */ ); -extern Status XDefineDeviceCursor( +extern Status XIDefineDeviceCursor( Display* /* display */, XDevice* /* device */, Window /* win */, Cursor /* cursor */ ); -extern Status XUndefineDeviceCursor( +extern Status XIUndefineDeviceCursor( Display* /* display */, XDevice* /* device */, Window /* win */ ); -extern Status XChangeDeviceHierarchy( +extern Status XIChangeDeviceHierarchy( Display* /* display */, - XAnyHierarchyChangeInfo* /* changes*/, + XIAnyHierarchyChangeInfo* /* changes*/, int /* num_changes */ ); -extern Status XSetClientPointer( +extern Status XISetClientPointer( Display* /* dpy */, Window /* win */, XDevice* /* device */ ); -extern Bool XGetClientPointer( +extern Bool XIGetClientPointer( Display* /* dpy */, Window /* win */, XID* /* deviceid */ |