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 new number of actions required
17

DESCRIPTION

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

SEE ALSO

48       XkbChangeTypesOfKey(3), XkbResizeKeySyms(3)
49

NOTES

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