XkbLatchModifiers(3)
πΈ NAME πΈ
okay so this is XkbLatchModifiers(3) from the XKB FUNCTIONS manual, and it's literally about latching and unlatching any of the eight real keyboard modifiers. π
β¨ SYNOPSIS β¨
Bool XkbLatchModifiers (Display *display, unsigned int device_spec,
unsigned int affect, unsigned int values);
π ARGUMENTS π
displayβ ur connection to the X server.device_specβ the device ID, orXkbUseCoreKbd.affectβ a mask of real modifiers whose lock state is gonna change.valuesβ1 => lock,0 => unlock; this only applies to the modifiers selected byaffect.
π₯ DESCRIPTION π₯
So XkbLatchModifiers shoots a request over to the server to latch the real modifiers that are selected by both affect and values, and to unlatch the real modifiers that are selected by affect but not selected by values. π«
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 how modifiers are used take a mask in the affect parameter. That mask is a bitwise inclusive OR of the legal modifier masks: π
π Table 1 Real Modifier Masks π
ShiftMaskLockMaskControlMaskMod1MaskMod2MaskMod3MaskMod4MaskMod5Mask
π RETURN VALUES π
Trueβ TheXkbLatchModifiersfunction returnsTrueif a request was sent to the server to latch the real modifiers selected by bothaffectandvaluesand to unlatch the real modifiers selected byaffectbut not selected byvalues. slay.Falseβ TheXkbLatchModifiersfunction returnsFalseif the request was not sent. π
okay bye bestie π β this page is brought to you by X Version 11 and libX11 1.8.14 (the source/version info), with no extra date line in the footer to report. β¨
π¦ 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