XkbGetKeyActions(3)
XkbGetKeyActions(3) π β¨
okay so bestie, this page is XkbGetKeyActions(3) from the XKB FUNCTIONS manual, and it is literally here to βUpdate the actions (the key_acts array) for a subset of the keys in a keyboard description.β π
πΈ NAME πΈ
XkbGetKeyActions β Update the actions (the key_acts array) for a subset of the keys in a keyboard description. periodt. π
π«Ά SYNOPSIS π«Ά
Status XkbGetKeyActions (Display *dpy, unsigned int first, unsigned int
num, XkbDescPtr xkb);
β¨ ARGUMENTS β¨
Hereβs the cast, and yes, every single one matters:
dpyβ connection to X server. your portal to server land πfirstβ keycode of first key of interest. where the lil key range starts πnumβ number of keys desired. how many keys weβre pulling into the group chat πxkbβ pointer to keyboard description where result is stored. the place the lore gets saved π«Ά
π DESCRIPTION π
Okay so XkbGetKeyActions sends a request to the server to obtain the actions for num keys on the keyboard starting with key first. It waits for a reply and returns the actions in the server->key_acts field of xkb. If successful, XkbGetKeyActions returns Success. The xkb parameter must be a pointer to a valid Xkb keyboard description. β¨
If the server map, in the xkb parameter, has not been allocated, XkbGetKeyActions allocates and initializes it before obtaining the actions. sheβs proactive like that. π
If the server does not have a compatible version of Xkb, or the Xkb extension has not been properly initialized, XkbGetKeyActions returns BadAccess. If num is less than 1 or greater than XkbMaxKeyCount, XkbGetKeyActions returns BadValue. If any allocation errors occur, XkbGetKeyActions returns BadAlloc. π
bestie, the xkb pointer has to be a valid Xkb keyboard description β that is not optional, okay? π«Ά
π DIAGNOSTICS π
BadAccessβ The Xkb extension has not been properly initialized. π«BadAllocβ Unable to allocate storage. πBadValueβ An argument is out of range. π
Cute sign-off time: this page is serving X Version 11 / libX11 1.8.14 source/version energy, and the page tag is XkbGetKeyActions(3). byeee ππ
π¦ 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