1XkbSetAutoResetControls(3)       XKB FUNCTIONS      XkbSetAutoResetControls(3)
2
3
4

NAME

6       XkbSetAutoResetControls  -  Changes the current values of the AutoReset
7       control attributes
8

SYNOPSIS

10       Bool  XkbSetAutoResetControls  (Display  *dpy,  unsigned  int  changes,
11              unsigned int *auto_ctrls, unsigned int *auto_values);
12

ARGUMENTS

14       - dpy  connection to X server
15
16       - changes
17              controls for which to change auto-reset values
18
19       - auto_ctrls
20              controls from changes that should auto reset
21
22       - auto_values
23              1 bit => auto-reset on
24

DESCRIPTION

26       XkbSetAutoResetControls  changes  the  auto-reset status and associated
27       auto-reset values for the controls selected by changes.  For  any  con‐
28       trol   selected  by  changes,  if  the  corresponding  bit  is  set  in
29       auto_ctrls, the control is configured to  auto-reset  when  the  client
30       exits.  If  the  corresponding bit in auto_values is on, the control is
31       turned on when the client exits; if zero, the  control  is  turned  off
32       when the client exits. For any control selected by changes, if the cor‐
33       responding bit is not set in auto_ctrls, the control is  configured  to
34       not reset when the client exits.
35
36       For example:
37
38       To leave the auto-reset controls for StickyKeys the way they are:
39
40            ok = XkbSetAutoResetControls(dpy, 0, 0, 0);
41
42       To change the auto-reset controls so that StickyKeys are unaffected when the
43       client exits:
44
45            ok = XkbSetAutoResetControls(dpy, XkbStickyKeysMask, 0, 0);
46
47       To change the auto-reset controls so that StickyKeys are turned off when the
48       client exits:
49
50            ok = XkbSetAutoResetControls(dpy, XkbStickyKeysMask, XkbStickyKeysMask, 0);
51
52       To change the auto-reset controls so that StickyKeys are turned on when the
53       client exits:
54
55            ok = XkbSetAutoResetControls(dpy, XkbStickyKeysMask, XkbStickyKeysMask,
56       XkbStickyKeysMask);
57
58       XkbSetAutoResetControls  backfills  auto_ctrls and auto_values with the
59       auto-reset controls for this particular client. Note that  all  of  the
60       bits  are  valid  in the returned values, not just the ones selected in
61       the changes mask.
62
63
64
65X Version 11                     libX11 1.6.7       XkbSetAutoResetControls(3)
Impressum