1
XICHANGEHIERARCHY(libmansuffix)
2
===============================
7
XIChangeHierarchy - change the device hierarchy.
12
#include <X11/extensions/XInput2.h>
14
Status XIChangeHierarchy( Display *display,
15
XIAnyHierarchyChangeInfo *changes,
19
Specifies the connection to the X server.
22
Specifies the number of elements in changes.
25
Specifies the changes to be made.
30
XIChangeHierarchy modifies the device hierarchy by creating or
31
removing master devices or changing the attachment of slave
32
devices. If num_changes is non-zero, changes is an array of
33
XIAnyHierarchyChangeInfo structures.
35
XIChangeHierarchy processes changes in order, effective
36
immediately. If an error occurs, processing is aborted and the
37
error is reported to the client. Changes already made remain
40
The list of changes is any combination of
41
XIAnyHierarchyChangeInfo. The type of a hierarchy change can be
42
XIAddMaster, XIRemoveMaster, XIAttachSlave or XIDetachSlave.
47
XIRemoveMasterInfo remove;
50
} XIAnyHierarchyChangeInfo;
53
int type; /* XIAddMaster */
60
int type; /* XIRemoveMaster */
68
int type; /* XIAttachSlave */
74
int type; /* XIDetachSlave */
78
XIAddMasterInfo creates a new master pointer and a new
79
master keyboard labelled "name pointer" and "name keyboard"
80
respectively. If sendCore is True, the devices will send core
81
events. If enable is True, the device is enabled immediately.
83
XIAddMasterInfo can generate a BadValue error.
85
XIRemoveMasterInfo removes device and its paired master device.
86
If returnMode is XIAttachToMaster, all pointers attached to
87
device or its paired master device are attached to
88
returnPointer. Likewise, all keyboards are attached to
89
returnKeyboard. If returnMode is XIFloating, all attached
90
devices are set to floating.
92
XIRemoveMasterInfo can generate a BadValue and a BadDevice
95
XIAttachSlaveInfo attaches device to newMaster. If the device
96
is currently attached to a master device, it is detached from
97
the master device and attached to the new master device.
99
XIAttachSlaveInfo can generate a BadDevice error.
101
XIDettachSlaveInfo deattaches device from the current master
102
device and sets it floating. If the device is already floating,
105
XIDetachSlaveInfo can generate a BadDevice error.
107
XIChangeHierarchy generates an XIHierarchyEvent if any
108
modifications were successful.
114
An invalid device was specified. The device does not
115
exist or is not a appropriate for the type of change.
118
Some numeric value falls out of the allowed range.