XkbGetIndicatorMap(3)
π
XkbGetIndicatorMap β XKB FUNCTIONS π
okay so bestie, welcome to XkbGetIndicatorMap from the XKB FUNCTIONS manual. this is the function that gets the map for one or more indicators, using a mask to specify the indicators. no cap, it's giving "indicator data, but make it masked." β¨
π NAME π
XkbGetIndicatorMap β gets the map for one or more indicators, using a mask to specify the indicators π
π SYNOPSIS π
Status XkbGetIndicatorMap (Display *dpy, unsigned int which, XkbDescPtr
desc);
π«Ά ARGUMENTS π«Ά
dpyβ connection to the X server πwhichβ mask of indicators for which maps should be returned π―descβ keyboard description to be updated π
π DESCRIPTION π
okay so Xkb lets applications obtain information about indicators using two different methods, and both are valid, bestie.
- the first method is similar to the core X implementation: it uses a mask to specify the indicators. very classic, very "we've been doing this." π
- the second method is more suitable for applications concerned with interoperability: it uses indicator names. cute, portable, socially aware. π¦
the correspondence between the indicator name and the bit position in masks is as follows: one of the parameters returned from XkbGetNamedIndicators is an index that is the bit position to use in any function call that requires a mask of indicator bits, as well as the indicator's index into the XkbIndicatorRec array of indicator maps. iykyk β that index is doing double duty. β¨
XkbGetIndicatorMap obtains the maps from the server for only those indicators specified by the which mask and copies the values into the keyboard description specified by desc. only the ones you asked for, no overfetching, we love boundaries. π«Ά
if the indicators field of the desc parameter is NULL, XkbGetIndicatorMap allocates and initializes it. so it's like "oh, no container? i got you, bestie." π
to free the indicator maps, use XkbFreeIndicatorMaps. clean up after yourself, periodt. π§Ή
π DIAGNOSTICS π
BadAllocβ unable to allocate storage πBadMatchβ a compatible version of Xkb was not available in the server or an argument has correct type and range, but is otherwise invalid πBadImplementationβ invalid reply from server π
π SEE ALSO π
XkbFreeIndicatorMaps(3)XkbGetNamedIndicators(3)
xoxo, from X Version 11 and libX11 1.8.14 β this page is XkbGetIndicatorMap(3) πβ¨
π¦ 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