XkbGetGeometry(3)

πŸ’– XkbGetGeometry(3) β€” XKB FUNCTIONS πŸ’–

okay so this is the XKB functions corner of the manual, and today’s main character is XkbGetGeometry. no cap, it’s giving β€œI already have the keyboard description, now gimme the geometry” energy. πŸ’…

🌸 NAME 🌸

XkbGetGeometry β€” loads a keyboard geometry if you already have the keyboard description. periodt. πŸ’–

✨ SYNOPSIS ✨

Status XkbGetGeometry (Display *dpy, XkbDescPtr xkb);

πŸŽ€ ARGUMENTS πŸŽ€

  • dpy β€” connection to the X server. your link to the server, bestie. πŸ”Œ
  • xkb β€” keyboard description that contains the ID for the keyboard and into which the geometry should be loaded. it’s both the source of the device ID and the place where the geometry goes. lowkey multi-tasking. ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

So here’s the vibe: you can load a keyboard geometry as part of the keyboard description returned by XkbGetKeyboard. iconic. but if a keyboard description has been previously loaded, you can instead obtain the geometry by calling XkbGetGeometry. in that case, the geometry returned is the one associated with the keyboard whose device ID is contained in the keyboard description. iykyk. πŸ’…

XkbGetGeometry can return BadValue, BadImplementation, BadName, BadAlloc, or BadLength errors, or Success if it succeeds. literally the whole mood ring of outcomes. 😭

πŸ’€ DIAGNOSTICS πŸ’€

  • BadAlloc β€” Unable to allocate storage. the allocation said β€œnot today,” bestie. πŸ™ˆ
  • BadImplementation β€” Invalid reply from server. something came back from the server and it was not it. πŸ’€
  • BadLength β€” The length of a request is shorter or longer than that required to minimally contain the arguments. the request’s size said β€œnot today.” 😭
  • BadName β€” A font or color of the specified name does not exist. bestie, that name is not in the group chat. πŸŽ€
  • BadValue β€” An argument is out of range. one of the values is giving out-of-range behavior. 🚫

πŸ‘‘ SEE ALSO πŸ‘‘

XkbGetKeyboard(3)


okay that’s the whole page. mwah πŸ’– cute little sign-off: X Version 11, libX11 1.8.14, XkbGetGeometry(3). stay slay, and may your geometry always load. ✨🫢

πŸ“¦ where this page comes from