XkbGetState(3)

okay bestie, welcome to XkbGetState(3) from the XKB FUNCTIONS manual β€” we're grabbing the keyboard state and it's giving main character energy πŸ’…

🌸 NAME 🌸

XkbGetState β€” obtains the keyboard state 🎹✨

πŸ¦‹ SYNOPSIS πŸ¦‹

Status XkbGetState (Display *display, unsigned int device_spec,
       XkbStatePtr state_return);

πŸŽ€ ARGUMENTS πŸŽ€

  • display β€” connection to the X server, aka your lil chat line to the server πŸ’–
  • device_spec β€” device ID, or XkbUseCoreKbd 🫢
  • state_return β€” backfilled with Xkb state; this is where the answer lands ✨

πŸ’œ DESCRIPTION πŸ’œ

okay so XkbGetState queries the server for the current keyboard state, waits for a reply, and then backfills state_return with the results. no cap, that's the flow πŸ¦‹

All group values are expressed as group indices in the range [0..3] β€” yes bestie, that exact range πŸ‘‘

Modifiers and the compatibility modifier state values are expressed as the bitwise union of the core X11 modifier masks. The pointer button state is reported as in the core X11 protocol. literally keeping those facts intact πŸ’…


that's the whole page, and it's XkbGetState(3) from the XKB FUNCTIONS manual. this cutie comes from X Version 11, libX11 1.8.14 β€” periodt πŸ’–βœ¨

πŸ“¦ where this page comes from