XkbFreeGeomDoodads(3)
π NAME π
Okay bestie, welcome to XkbFreeGeomDoodads(3) from the XKB FUNCTIONS manual. This page is literally βFree geometry doodadsβ β thatβs the whole name vibe. π
β¨ SYNOPSIS β¨
void XkbFreeGeomDoodads (XkbDoodadPtr doodads, int count, Bool
free_all);
π ARGUMENTS π
doodadsβ the doodads to be freed, no cap.countβ number of doodads to be freed.free_allβTrue=> all doodads are freed.
π¦ DESCRIPTION π¦
Xkb has a whole lineup of functions for allocating and freeing subcomponents of a keyboard geometry. Use these cuties 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 not doing the glow-up for you β you have to put the values in yourself. The allocation functions increase sz_* but never touch num_* β unless thereβs an allocation failure, in which case they reset both sz_* and num_* 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. Thatβs the whole status update, bestie.
If free_all is True, all doodads in the array are freed, regardless of the value of count. Otherwise, count doodads are freed. So free_all is the main character here; when itβs True, count is lowkey not invited to the decision. π
πΈ RETURN VALUES πΈ
Successβ TheXkbFreeGeomDoodadsfunction returnsSuccessif there are no allocation errors. Slay. β
π₯ DIAGNOSTICS π₯
BadAllocβ Unable to allocate storage. πBadValueβ An argument is out of range. π
π¨ Friendly reminder with full dramatic energy: iffree_allisTrue, all the doodads in the array get freed regardless ofcount. Thatβs not a drill; thatβs the documented behavior.
π Cute sign-off: this page is from X Version 11 / libX11 1.8.14, and the footer source/version/date line on this copy is just that β X Version 11, libX11 1.8.14, with the page name XkbFreeGeomDoodads(3). Periodt. π
π¦ 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