XkbFreeGeomKeyAliases(3)
π¦ XkbFreeGeomKeyAliases β from the XKB FUNCTIONS manual π¦
β¨ NAME β¨
XkbFreeGeomKeyAliases β free geometry key aliases. That's it, that's the job, and it ate. π
π SYNOPSIS π
void XkbFreeGeomKeyAliases (XkbGeometryPtr geom, int first, int count,
Bool free_all);
π ARGUMENTS π
geomβ the geometry where the key aliases should be freed, bestie.firstβ the first key alias to be freed.countβ how many key aliases to free.free_allβTrue=> all key aliases are freed. Like, all of them, no cap.
π DESCRIPTION π
Okay so Xkb provides a whole crew of functions to allocate and free subcomponents of a keyboard geometry. Use these functions to create or modify keyboard geometries. π οΈ
Important vibe check: these functions merely allocate space for the new element(s), and it is up to you to fill in the values explicitly in your code. They're giving scaffolding, not finished lewk. β¨
These allocation functions increase sz_* but never touch num_* β unless there is an allocation failure, in which case they reset both sz_* and num_* to zero. So yeah, failure is dramatic like that. π
These functions return Success if they succeed, BadAlloc if they are not able to allocate space, or BadValue if a parameter is not as expected.
If free_all is True, all aliases in the top level of the specified geometry geom are freed regardless of the value of first or count. Otherwise, count aliases in geom are freed beginning with the one specified by first. So don't come for first and count when free_all is already doing the most. π
π RETURN VALUES π
Successβ TheXkbFreeGeomKeyAliasesfunction returnsSuccessif there are no allocation errors. Slay. β
π DIAGNOSTICS π
BadAllocβ Unable to allocate storage. Storage said no. πBadValueβ An argument is out of range. Rude, but valid. π©
and that's the whole page, bestie π«Ά β brought to you by the footer's X Version 11 / libX11 1.8.14 source/version info and the XkbFreeGeomKeyAliases(3) page name β no separate date printed, so that's the whole footer tea. π΅π
π¦ 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