1XSelectionEvent(3)              XLIB FUNCTIONS              XSelectionEvent(3)
2
3
4

NAME

6       XSelectionEvent - SelectionNotify event structure
7

STRUCTURES

9       The structure for SelectionNotify events contains:
10
11       typedef struct {
12               int type;       /* SelectionNotify */
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 requestor;
17               Atom selection;
18               Atom target;
19               Atom property;  /* atom or None */
20               Time time;
21       } XSelectionEvent;
22
23       When you receive this event, the structure members are set as follows.
24
25       The  type  member  is set to the event type constant name that uniquely
26       identifies it.  For example, when the X server reports a GraphicsExpose
27       event  to a client application, it sends an XGraphicsExposeEvent struc‐
28       ture with the type member set to GraphicsExpose.  The display member is
29       set  to a pointer to the display the event was read on.  The send_event
30       member is set to True if the  event  came  from  a  SendEvent  protocol
31       request.   The  serial member is set from the serial number reported in
32       the protocol but expanded from the 16-bit least-significant bits  to  a
33       full 32-bit value.  The window member is set to the window that is most
34       useful to toolkit dispatchers.
35
36       The requestor member is set to the window associated with the requestor
37       of  the  selection.  The selection member is set to the atom that indi‐
38       cates the selection.  For example, PRIMARY  is  used  for  the  primary
39       selection.   The  target  member  is set to the atom that indicates the
40       converted type.  For example, PIXMAP is used for a pixmap.   The  prop‐
41       erty member is set to the atom that indicates which property the result
42       was stored on.  If the conversion failed, the property member is set to
43       None.  The time member is set to the time the conversion took place and
44       can be a timestamp or CurrentTime.
45

SEE ALSO

47       XAnyEvent(3),   XButtonEvent(3),    XCreateWindowEvent(3),    XCircula‐
48       teEvent(3),   XCirculateRequestEvent(3),   XColormapEvent(3),  XConfig‐
49       ureEvent(3), XConfigureRequestEvent(3), XCrossingEvent(3), XDestroyWin‐
50       dowEvent(3),   XErrorEvent(3),  XExposeEvent(3),  XFocusChangeEvent(3),
51       XGraphicsExposeEvent(3),       XGravityEvent(3),       XKeymapEvent(3),
52       XMapEvent(3),     XMapRequestEvent(3),    XPropertyEvent(3),    XRepar‐
53       entEvent(3), XResizeRequestEvent(3),  XSelectionClearEvent(3),  XSelec‐
54       tionRequestEvent(3), XUnmapEvent(3), XVisibilityEvent(3)
55       Xlib - C Language X Interface
56
57
58
59X Version 11                     libX11 1.6.12              XSelectionEvent(3)
Impressum