XkbGetAutoResetControls(3)
π NAME π
Okay bestie, welcome to XkbGetAutoResetControls(3) from XKB FUNCTIONS β the XKB function that gets the current values of the auto-reset controls. That's literally the vibe. π
β¨ SYNOPSIS β¨
Bool XkbGetAutoResetControls (Display *dpy, unsigned int *auto_ctrls,
unsigned int *auto_values);
π ARGUMENTS π
dpyβ connection to X server. The server-link situation, basically.auto_ctrlsβ specifies which bits inauto_valuesare relevant.auto_valuesβ1 bit => corresponding control has auto-reset on.
π¦ DESCRIPTION π¦
You can configure the boolean controls to automatically be enabled or disabled when a program exits. This capability is controlled via two masks maintained in the X server on a per-client basis. There is no client-side Xkb data structure corresponding to these masks. π
Whenever the client exits for any reason, any boolean controls specified in the auto-reset mask are set to the corresponding value from the auto-reset values mask. This makes it possible for clients to "clean up after themselves" automatically, even if abnormally terminated. The bits used in the masks correspond to the EnabledControls control bits. Periodt. β¨
For example, a client that replaces the keyboard bell with some other audible cue might want to turn off the AudibleBell control to prevent the server from also generating a sound and avoid cacophony. If the client were to exit without resetting the AudibleBell control, the user would be left without any feedback at all. Setting AudibleBell in both the auto-reset mask and auto-reset values guarantees that the audible bell will be turned back on when the client exits. ππ
XkbGetAutoResetControls backfills auto_ctrls and auto_values with the AutoReset control attributes for this particular client. It returns True if successful, and False otherwise. No cap.
π RETURN VALUES π
Trueβ TheXkbGetAutoResetControlsfunction returnsTruewhen it successfully backfillsauto_ctrlsandauto_valueswith theAutoResetcontrol attributes for this particular client.Falseβ TheXkbGetAutoResetControlsfunction returnsFalsewhen it does not successfully backfillauto_ctrlsandauto_valueswith theAutoResetcontrol attributes for this particular client.
That's the whole page, bestie! Footer tea: X Version 11, libX11 1.8.14, and XkbGetAutoResetControls(3) β and there's no date line in the footer, so I'm not inventing one. Slay π
β¨π«Ά
π¦ 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