XkbLockModifiers(3)
π XkbLockModifiers β the libX11 bestie for locking + unlocking real modifiers
okay so this is XkbLockModifiers(3), straight out of the XKB FUNCTIONS corner of libX11. Come get your modifier tea. π
πΈ NAME πΈ
XkbLockModifiers β Locks and unlocks any of the eight real keyboard modifiers. π
β¨ SYNOPSIS β¨
Bool XkbLockModifiers (Display *display, unsigned int device_spec,
unsigned int affect, unsigned int values);
π ARGUMENTS π
displayβ connection to the X server. π₯οΈβ¨device_specβ device ID, orXkbUseCoreKbd. πaffectβ mask of real modifiers whose lock state is to change. ποΈvaluesβ1=> lock,0=> unlock; only for modifiers selected byaffect. π
π DESCRIPTION π
okay so XkbLockModifiers sends a request to the server to lock the real modifiers selected by both affect and values and to unlock the real modifiers selected by affect, but not selected by values. That's the whole arc, bestie. π
It does not wait for a reply from the server. It returns True if the request was sent, and False otherwise. No cap. β¨
The functions in this section that change the use of modifiers use a mask in the parameter affect. It is a bitwise inclusive OR of the legal modifier masks:
π Table 1 Real Modifier Masks
ShiftMaskLockMaskControlMaskMod1MaskMod2MaskMod3MaskMod4MaskMod5Mask
π RETURN VALUES π
Trueβ TheXkbLockModifiersfunction returnsTrueif a request is sent to the server to lock the real modifiers selected by bothaffectandvaluesand to unlock the real modifiers selected byaffect, but not selected byvalues. π«ΆFalseβ TheXkbLockModifiersfunction returnsFalseif the request was not sent. π
X Version 11, libX11 1.8.14, XkbLockModifiers(3) β that's the footer tea π΅ (and yes, no separate date is printed on the footer, bestie). Stay locked, stay iconic. π
β¨
π¦ 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