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

NAME

6       XkbResizeKeyActions - Change the number of actions bound to a key
7

SYNOPSIS

9       XkbAction * XkbResizeKeyActions (XkbDescRec *xkb, int key, int needed);
10

ARGUMENTS

12       - xkb  keyboard description to change
13
14       - key  keycode of key to change
15
16       - needed
17              new number of actions required
18

DESCRIPTION

20       The xkb parameter points to the keyboard description containing the key
21       whose number of actions is to be changed. The key parameter is the key‐
22       code  of  the  key  to  change,  and needed specifies the new number of
23       actions required for the key.
24
25       XkbResizeKeyActions reserves the  space  needed  for  the  actions  and
26       returns  a  pointer  to  the  beginning of the new array that holds the
27       actions. It can change the acts,  num_acts,  and  size_acts  fields  of
28       xkb->server if it is necessary to reallocate the acts array.
29
30       If  needed  is  greater than the current number of keysyms for the key,
31       XkbResizeKeyActions initializes all new actions in the array  to  NoAc‐
32       tion.
33
34       Because  the  number of actions needed by a key is normally computed as
35       width * number of  groups,  and  XkbResizeKeyActions  does  not  modify
36       either  the width or number of groups for the key, a discrepancy exists
37       on return from XkbResizeKeyActions between the space allocated for  the
38       actions  and  the  number  required.  The unused entries in the list of
39       actions returned by XkbResizeKeyActions are not preserved across future
40       calls  to  any of the map editing functions, so you must update the key
41       actions (which updates the width and number  of  groups  for  the  key)
42       before  calling  another  allocator  function. A call to XkbChangeType‐
43       sOfKey updates these.
44
45       If any allocation errors occur while resizing  the  number  of  actions
46       bound to the key, XkbResizeKeyActions returns NULL.
47

SEE ALSO

49       XkbChangeTypesOfKey(3), XkbResizeKeySyms(3)
50

NOTES

52       A  change to the number of actions bound to a key should be accompanied
53       by a change in the number of symbols bound to a key.  Refer  to  XkbRe‐
54       sizeKeySyms  for  more  information  on  changing the number of symbols
55       bound to a key.
56
57
58
59X Version 11                     libX11 1.6.12          XkbResizeKeyActions(3)
Impressum