$XFree86: xc/doc/man/Xi/XChgKbd.man,v 1.2 2001/01/27 18:20:21 dawes Exp $
Copyright ([\d,\s]*) by Hewlett-Packard Company, Ardent Computer,
Permission to use, copy, modify, distribute, and sell this documentation
for any purpose and without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
Ardent, and Hewlett-Packard make no representations about the
suitability for any purpose of the information in this document. It is
provided \`\`as is'' without express or implied warranty.
$Xorg: XChgKbd.man,v 1.3 2000/08/17 19:41:56 cpqbld Exp $
Status XChangeKeyboardDevice\^(\^Display *display\^, XDevice *device\^);
12 display Specifies the connection to the X server.
12 device Specifies the device to be used as the X keyboard.
If the specified device is grabbed by another client, AlreadyGrabbed is returned. If the specified device is frozen by a grab on another device, GrabFrozen is returned. If the request is successful, Success is returned.
If the request succeeds, a ChangeDeviceNotify event is sent to all clients that have selected that event. A MappingNotify event with request = MappingKeyboard is sent to all clients. The specified device becomes the X keyboard and the old X keyboard becomes accessible through the input extension protocol requests.
XChangeKeyboardDevice can generate a BadDevice or a BadMatch error.
12 BadDevice An invalid device was specified. The specified device does not exist, has not been opened by this client via XOpenInputDevice, or is already one of the core X device (pointer or keyboard). This error may also occur if the server implementation does not support using the specified device as the X keyboard.
12 BadMatch This error may occur if an XChangeKeyboardDevice request was made specifying a device that has no keys.
\*(xL