1XClientMessageEvent(3X11) XLIB FUNCTIONS XClientMessageEvent(3X11)
2
3
4
6 XClientMessageEvent - ClientMessage event structure
7
9 The structure for ClientMessage events contains:
10
11 typedef struct {
12 int type; /∗ ClientMessage */
13 unsigned long serial; /∗ # of last request processed by server */
14 Bool send_event; /∗ true if this came from a SendEvent request */
15 Display *display; /∗ Display the event was read from */
16 Window window;
17 Atom message_type;
18 int format;
19 union {
20 char b[20];
21 short s[10];
22 long l[5];
23 } data;
24 } XClientMessageEvent;
25
26 When you receive this event, the structure members are set as follows.
27
28 The type member is set to the event type constant name that uniquely
29 identifies it. For example, when the X server reports a GraphicsExpose
30 event to a client application, it sends an XGraphicsExposeEvent struc‐
31 ture with the type member set to GraphicsExpose. The display member is
32 set to a pointer to the display the event was read on. The send_event
33 member is set to True if the event came from a SendEvent protocol
34 request. The serial member is set from the serial number reported in
35 the protocol but expanded from the 16-bit least-significant bits to a
36 full 32-bit value. The window member is set to the window that is most
37 useful to toolkit dispatchers.
38
39 The message_type member is set to an atom that indicates how the data
40 should be interpreted by the receiving client. The format member is
41 set to 8, 16, or 32 and specifies whether the data should be viewed as
42 a list of bytes, shorts, or longs. The data member is a union that
43 contains the members b, s, and l. The b, s, and l members represent
44 data of twenty 8-bit values, ten 16-bit values, and five 32-bit values.
45 Particular message types might not make use of all these values. The X
46 server places no interpretation on the values in the window, mes‐
47 sage_type, or data members.
48
50 XAnyEvent(3X11), XButtonEvent(3X11), XCreateWindowEvent(3X11), XCircu‐
51 lateEvent(3X11), XCirculateRequestEvent(3X11), XColormapEvent(3X11),
52 XConfigureEvent(3X11), XConfigureRequestEvent(3X11),
53 XCrossingEvent(3X11), XDestroyWindowEvent(3X11), XErrorEvent(3X11),
54 XExposeEvent(3X11), XFocusChangeEvent(3X11), XGraphicsEx‐
55 poseEvent(3X11), XGravityEvent(3X11), XKeymapEvent(3X11),
56 XMapEvent(3X11), XMapRequestEvent(3X11), XPropertyEvent(3X11), XRepar‐
57 entEvent(3X11), XResizeRequestEvent(3X11), XSelectionClearEvent(3X11),
58 XSelectionEvent(3X11), XSelectionRequestEvent(3X11), XUnmapEvent(3X11),
59 XVisibilityEvent(3X11)
60 Xlib - C Language X Interface
61
62
63
64X Version 11 libX11 1.0.3 XClientMessageEvent(3X11)