XkbGetKeyBehaviors(3)
XkbGetKeyBehaviors(3) is your girl from the XKB FUNCTIONS manual, and sheβs here to pull the behaviors array for a subset of keys from the server. bestie, weβre locked in π β¨
π¦ NAME π¦
XkbGetKeyBehaviors β obtain the behaviors (the behaviors array) for a subset of the keys in a keyboard description from the server.
β¨ SYNOPSIS β¨
Status XkbGetKeyBehaviors (Display *dpy, unsigned int first, unsigned
int num, XkbDescPtr xkb);
π ARGUMENTS π
dpyβ connection to server. yes, the whole server-connection situation.firstβ keycode of first key to get. like, where the key range starts.numβ number of keys for which behaviors are desired. how many keys weβre grabbing behaviors for.xkbβ Xkb description to contain the result. the container for the result, no cap.
πΈ DESCRIPTION πΈ
okay so XkbGetKeyBehaviors sends a request to the server to obtain the behaviors for num keys on the keyboard starting with the key whose keycode is first. it waits for a reply and returns the behaviors in the server->behaviors field of xkb. if successful, XkbGetKeyBehaviors returns Success. slay.
if the server map in the xkb parameter has not been allocated, XkbGetKeyBehaviors allocates and initializes it before obtaining the actions. noted, bestie.
π¨ error vibe check: if the server does not have a compatible version of Xkb, or the Xkb extension has not been properly initialized,XkbGetKeyBehaviorsreturnsBadAccess. ifnumis less than 1 or greater thanXkbMaxKeyCount,XkbGetKeyBehaviorsreturnsBadValue. if any allocation errors occur,XkbGetKeyBehaviorsreturnsBadAlloc.
π DIAGNOSTICS π
BadAccessβ The Xkb extension has not been properly initialized πBadAllocβ Unable to allocate storage πBadValueβ An argument is out of range π
thatβs the whole page, bestie β brought to you by X Version 11 and libX11 1.8.14. mwah πβ¨
π¦ where this page comes from
- alpine 3.24: libx11-doc 1.8.14-r0 Β· X11
- arch rolling: libx11 1.8.14-1 Β· MIT AND X11
- nixos 26.05: libx11 1.8.14
- nixpkgs unstable: libx11 1.8.14
- Copyright (c) 1999, Oracle and/or its affiliates
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms