1XkbSASetScreen(3) XKB FUNCTIONS XkbSASetScreen(3)
2
3
4
6 XkbSASetScreen - Sets the screenXXX field of act from s
7
9 void XkbSASetScreen (XkbSwitchScreenAction act, int s);
10
12 - act action in which to set screenXXX
13
14 - s value to set in screenXXX
15
17 Actions associated with the XkbSwitchScreen action structure change the
18 active screen on a multiscreen display.
19
20 The type field of the XkbSwitchScreenAction structure should always be
21 XkbSA_SwitchScreen.
22
23 The flags field is composed of the bitwise inclusive OR of the masks
24 shown in Table 1.
25
26
27 Table 1 Switch Screen Action Flags
28 ───────────────────────────────────────────────────────────────────
29 Flag Meaning
30 ───────────────────────────────────────────────────────────────────
31 XkbSA_SwitchAbsolute If set, the screenXXX field represents
32 the index of the new screen. Otherwise,
33 it represents an offset from the current
34 screen to the new screen.
35 XkbSA_SwitchApplication If not set, the action should switch to
36 another screen on the same server. Oth‐
37 erwise, it should switch to another X
38 server or application that shares the
39 same physical display.
40
41 The screenXXX field is a signed character value that represents either
42 the relative or absolute screen index, depending on the state of the
43 XkbSA_SwitchAbsolute bit in the flags field. Xkb provides the following
44 macros to convert between the integer and signed character value for
45 screen numbers in XkbSwitchScreenAction structures.
46
48 typedef struct _XkbSwitchScreenAction {
49 unsigned char type; /∗ XkbSA_SwitchScreen */
50 unsigned char flags; /∗ controls screen switching */
51 char screenXXX; /∗ screen number or delta */
52 } XkbSwitchScreenAction;
53
54
56 This action is optional. Servers are free to ignore the action or any
57 of its flags if they do not support the requested behavior. If the
58 action is ignored, it behaves like XkbSA_NoAction. Otherwise, key press
59 and key release events do not generate an event.
60
61
62
63X Version 11 libX11 1.6.5 XkbSASetScreen(3)