XkbResizeKeyActions(3)
π XkbResizeKeyActions(3) π
okay bestie, welcome to the XKB FUNCTIONS manual page for XkbResizeKeyActions(3) β it's giving βchange the number of actions bound to a keyβ and we are gonna get into it π
β¨
π NAME π
XkbResizeKeyActions β change the number of actions bound to a key
β¨ SYNOPSIS β¨
XkbAction * XkbResizeKeyActions (XkbDescRec *xkb, int key, int needed);
π ARGUMENTS π
xkbβ the keyboard description to change, aka the keyboard data you're editing πkeyβ keycode of the key to change πneededβ the new number of actions required β¨
πΈ DESCRIPTION πΈ
The xkb parameter points to the keyboard description containing the key whose number of actions is to be changed. The key parameter is the keycode of the key to change, and needed specifies the new number of actions required for the key. no cap, that's the whole setup π«Ά
XkbResizeKeyActions reserves the space needed for the actions and returns a pointer to the beginning of the new array that holds the actions. It can change the acts, num_acts, and size_acts fields of xkb->server if it is necessary to reallocate the acts array. lowkey doing allocator main character energy π
If needed is greater than the current number of keysyms for the key, XkbResizeKeyActions initializes all new actions in the array to NoAction.
Because the number of actions needed by a key is normally computed as width * number of groups, and XkbResizeKeyActions does not modify either the width or number of groups for the key, a discrepancy exists on return from XkbResizeKeyActions between the space allocated for the actions and the number required.
π¨ bestie, listen: the unused entries in the list of actions returned byXkbResizeKeyActionsare not preserved across future calls to any of the map editing functions, so you must update the key actions (which updates the width and number of groups for the key) before calling another allocator function. A call toXkbChangeTypesOfKeyupdates these. fr fr, do not skip this π
If any allocation errors occur while resizing the number of actions bound to the key, XkbResizeKeyActions returns NULL.
π SEE ALSO π
π«Ά NOTES π«Ά
A change to the number of actions bound to a key should be accompanied by a change in the number of symbols bound to a key. Refer to XkbResizeKeySyms for more information on changing the number of symbols bound to a key. matching set energy, iykyk π
π cute sign-off: brought to you by X Version 11 and libX11 1.8.14 β the footer didn't print a date, so we're not inventing one, periodt β XkbResizeKeyActions(3) out π β¨
π¦ 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