XkbInitCanonicalKeyTypes(3)
β¨ NAME β¨
okay so bestie, this is XkbInitCanonicalKeyTypes(3) from the XKB FUNCTIONS manual β and it sets the definitions of the canonical key types in a client map to their default values. slay.
π¦ SYNOPSIS π¦
Status XkbInitCanonicalKeyTypes (XkbDescPtr xkb, unsigned int which, int keypadVMod);
π ARGUMENTS π
xkbβ keyboard description containing client map to initialize.whichβ mask of types to initialize.keypadVModβ index ofNumLockvirtual modifier.
πΈ DESCRIPTION πΈ
XkbInitCanonicalKeyTypes initializes the first XkbNumRequiredTypes key types of the keyboard specified by the xkb parameter to their default values. no cap.
The which parameter specifies what canonical key types to initialize and is a bitwise inclusive OR of the following masks: XkbOneLevelMask, XkbTwoLevelMask, XkbAlphabeticMask, and XkbKeypadMask. Only those canonical types specified by the which mask are initialized. periodt.
If XkbKeypadMask is set in the which parameter, XkbInitCanonicalKeyTypes looks up the NumLock named virtual modifier to determine which virtual modifier to use when initializing the KEYPAD key type. If the NumLock virtual modifier does not exist, XkbInitCanonicalKeyTypes creates it. it's giving very main character energy, honestly.
XkbInitCanonicalKeyTypes normally returns Success. It returns BadAccess if the Xkb extension has not been properly initialized, and BadAccess if the xkb parameter is not valid. iykyk β yes, it really says BadAccess twice.
π RETURN VALUES π
Successβ theXkbInitCanonicalKeyTypesfunction returnsSuccessif the Xkb extension has been properly initialized and thexkbparameter is valid.
π DIAGNOSTICS π
BadAccessβ the Xkb extension has not been properly initialized.
π and that's the whole tea, bestie: X Version 11, libX11 1.8.14, XkbInitCanonicalKeyTypes(3) β 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