1XkbGetDetectableAutoRepeat(3) XKB FUNCTIONS XkbGetDetectableAutoRepeat(3)
2
3
4
6 XkbGetDetectableAutoRepeat - Determines whether or not the server sup‐
7 ports DetectableAutoRepeat
8
10 Bool XkbGetDetectableAutoRepeat (Display *display, Bool *sup‐
11 ported_rtrn);
12
14 - display
15 connection to X server
16
17 - supported_rtrn
18 backfilled True if DetectableAutoRepeat supported
19
21 Auto-repeat is the generation of multiple key events by a keyboard when
22 the user presses a key and holds it down. Keyboard hardware and device-
23 dependent X server software often implement auto-repeat by generating
24 multiple KeyPress events with no intervening KeyRelease event. The
25 standard behavior of the X server is to generate a KeyRelease event for
26 every KeyPress event. If the keyboard hardware and device-dependent
27 software of the X server implement auto-repeat by generating multiple
28 KeyPress events, the device-independent part of the X server by default
29 synthetically generates a KeyRelease event after each KeyPress event.
30 This provides predictable behavior for X clients, but does not allow
31 those clients to detect the fact that a key is auto-repeating.
32
33 Xkb allows clients to request detectable auto-repeat. If a client re‐
34 quests and the server supports DetectableAutoRepeat, Xkb generates
35 KeyRelease events only when the key is physically released. If De‐
36 tectableAutoRepeat is not supported or has not been requested, the
37 server synthesizes a KeyRelease event for each repeating KeyPress event
38 it generates.
39
40 DetectableAutoRepeat, unlike other controls, is not contained in the
41 XkbControlsRec structure, nor can it be enabled or disabled via the En‐
42 abledControls control. Instead, query and set DetectableAutoRepeat us‐
43 ing XkbGetDetectableAutoRepeat and XkbSetDetectableAutoRepeat.
44
45 DetectableAutoRepeat is a condition that applies to all keyboard de‐
46 vices for a client's connection to a given X server; it cannot be se‐
47 lectively set for some devices and not for others. For this reason,
48 none of the Xkb library functions involving DetectableAutoRepeat in‐
49 volve a device specifier.
50
51 XkbGetDetectableAutoRepeat queries the server for the current state of
52 DetectableAutoRepeat and waits for a reply. If supported_rtrn is not
53 NULL, it backfills supported_rtrn with True if the server supports De‐
54 tectableAutoRepeat, and False otherwise. XkbGetDetectableAutoRepeat
55 returns the current state of DetectableAutoRepeat for the requesting
56 client: True if DetectableAutoRepeat is set, and False otherwise.
57
59 True The XkbGetDetectableAutoRepeat function returns True if
60 the server supports DetectableAutoRepeat.
61
62 False The XkbGetDetectableAutoRepeat function returns False if
63 the server does not support DetectableAutoRepeat.
64
65
66
67X Version 11 libX11 1.7.2 XkbGetDetectableAutoRepeat(3)