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, orXkbUseCoreKbdπ«Ά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
- 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