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, or XkbUseCoreKbd.
  • affect β€” a mask of real modifiers whose lock state is gonna change.
  • values β€” 1 => lock, 0 => unlock; this only applies to the modifiers selected by affect.

πŸ”₯ 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 🌈

  • ShiftMask
  • LockMask
  • ControlMask
  • Mod1Mask
  • Mod2Mask
  • Mod3Mask
  • Mod4Mask
  • Mod5Mask

πŸ’– RETURN VALUES πŸ’–

  • True β€” The XkbLatchModifiers function returns True if a request was sent to the server to latch the real modifiers selected by both affect and values and to unlatch the real modifiers selected by affect but not selected by values. slay.
  • False β€” The XkbLatchModifiers function returns False if 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