2 .\" Title: xchangekeyboarddevice
3 .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4 .\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
6 .\" Manual: [FIXME: manual]
7 .\" Source: [FIXME: source]
10 .TH "XCHANGEKEYBOARDDEVIC" "libmansuffix" "09/23/2011" "[FIXME: source]" "[FIXME: manual]"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 XChangeKeyboardDevice \- change which device is used as the X keyboard
35 #include <X11/extensions/XInput\&.h>
39 Status XChangeKeyboardDevice( Display *display,
45 Specifies the connection to the X server\&.
50 Specifies the device to be used as the X keyboard\&.
58 The XChangeKeyboardDevice request causes the server to use the
59 specified device as the X keyboard\&. The device must have been
60 previously opened by the requesting client via XOpenDevice or a
61 BadDevice error will result\&. The device must support input
62 class Keys, or a BadMatch error will result\&. If the server
63 implementation does not support using the requested device as
64 the X keyboard, a BadDevice error will result\&.
74 If the specified device is grabbed by another client,
75 AlreadyGrabbed is returned\&. If the specified device is frozen
76 by a grab on another device, GrabFrozen is returned\&. If the
77 request is successful, Success is returned\&.
87 If the request succeeds, a ChangeDeviceNotify event is sent to
88 all clients that have selected that event\&. A MappingNotify
89 event with request = MappingKeyboard is sent to all clients\&.
90 The specified device becomes the X keyboard and the old X
91 keyboard becomes accessible through the input extension
102 XChangeKeyboardDevice can generate a BadDevice or a BadMatch
115 An invalid device was specified\&. The specified device
116 does not exist, has not been opened by this client via
117 XOpenInputDevice, or is already one of the core X device
118 (pointer or keyboard)\&. This error may also occur if the
119 server implementation does not support using the
120 specified device as the X keyboard\&.
131 This error may occur if an XChangeKeyboardDevice request
132 was made specifying a device that has no keys\&.
143 XChangePointerDevice(libmansuffix)