XkbFreeGeomOverlays(3)
okay bestie, this is XkbFreeGeomOverlays(3) from the XKB FUNCTIONS manual. It's giving βfree the overlays in a sectionβ energy, with a tiny plot twist: the NAME line literally says βFree rows in a sectionβ β yes, rows β and I'm keeping that exactly, because facts stay facts, periodt.
β¨ NAME β¨
XkbFreeGeomOverlaysβ Free rows in a section
πΈ SYNOPSIS πΈ
Here's the signature, copied exactly so nobody comes for me:
void XkbFreeGeomOverlays (XkbSectionPtr section, int first, int count,
Bool free_all);
π ARGUMENTS π
sectionβ section in which overlays should be freedfirstβ first overlay to be freedcountβ number of overlays to be freedfree_allβTrue=> all overlays are freed
π§ DESCRIPTION π§
Xkb provides a number of functions to allocate and free subcomponents of a keyboard geometry. Use these functions to create or modify keyboard geometries. Slay.
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. No magical auto-fill, bestie.
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. Both. To zero. π«Ά
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 overlays are freed regardless of the value of first and count β like, they don't even get a vote. Otherwise, the number of overlays specified by count are freed, beginning with the overlay specified by first in the specified section.
π RETURN VALUES π
Successβ TheXkbFreeGeomOverlaysfunctions returnsSuccessif there are no allocation or argument errors. (Yes, βfunctions returnsβ is literally what the page says; I'm not fixing it.)
π¦ DIAGNOSTICS π¦
BadAllocβ Unable to allocate storageBadValueβ An argument is out of range
okay that's the whole page, bestie. π Signing off with the footer deets: X Version 11 and libX11 1.8.14 β and no date is printed in the footer, so I'm not inventing one. Bye! π
π¦ 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