XCHANGEKEYBOARDDEVIC(3)
π XCHANGEKEYBOARDDEVIC π
okay bestie, so this one is from section 3 of the manual β XChangeKeyboardDevice(3) β and it's literally the glow-up button for your keyboard situation. β¨
πΈ NAME πΈ
XChangeKeyboardDevice β change which device is used as the X keyboard. no cap, that's the whole job. π
β¨ SYNOPSIS β¨
#include <X11/extensions/XInput.h>
Status XChangeKeyboardDevice( Display *display,
XDevice *device);
displayβ the connection to the X server. it's giving "hey bestie, i'm calling from this socket." π«Άdeviceβ the device you want to be the X keyboard. main character appointment fr fr. π
π¦ DESCRIPTION π¦
The XChangeKeyboardDevice request causes the server to use the specified device as the X keyboard. like, actually promoting it. π
The device must have been previously opened by the requesting client via XOpenDevice, or a BadDevice error will result. so if you didn't open it first, it's not beating the allegations. π
The device must support input class Keys, or a BadMatch error will result. a keyboard with no keys? not on this server's watch. π
If the server implementation does not support using the requested device as the X keyboard, a BadDevice error will result. some servers just don't have that range, and that's a them problem. π
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. so basically: grabbed β already taken, frozen β on ice, success β slay. π§β¨
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. the old keyboard isn't fired, bestie β it just moved departments. πβ‘οΈπ
XChangeKeyboardDevice can generate a BadDevice or a BadMatch error. that's just the vibe check. π«Ά
π DIAGNOSTICS π
BadDeviceβ An invalid device was specified. The specified device does not exist, has not been opened by this client viaXOpenInputDevice, 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. it's giving "who even are you" energy. πBadMatchβ This error may occur if anXChangeKeyboardDevicerequest was made specifying a device that has no keys. zero keys. not a single one. the audacity honestly. π
π₯ SEE ALSO π₯
XChangePointerDevice(3)β the pointer edition, for when you also need to relocate the vibes. π±οΈβ¨
okay that's the whole page, you ate that ππ
this was brought to you by the 05/18/2026 release of the XCHANGEKEYBOARDDEVIC(3) manual page β periodt. π
πβ¨
π¦ where this page comes from
- fedora 44: libXi-devel 1.8.3-1.fc44 Β· MIT-open-group AND SMLNJ AND MIT
- fedora 44: libXi-devel 1.8.3-1.fc44 Β· MIT-open-group AND SMLNJ AND MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms