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

NAME

6       XFocusChangeEvent - FocusIn and FocusOut event structure
7

STRUCTURES

9       The structure for FocusIn and FocusOut events contains:
10
11       typedef struct {
12               int type;       /* FocusIn or FocusOut */
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;  /* window of event */
17               int mode;       /* NotifyNormal, NotifyGrab, NotifyUngrab */
18               int detail;
19                       /*
20                       * NotifyAncestor, NotifyVirtual, NotifyInferior,
21                       * NotifyNonlinear,NotifyNonlinearVirtual, NotifyPointer,
22                       * NotifyPointerRoot, NotifyDetailNone
23                       */
24       } XFocusChangeEvent;
25       typedef XFocusChangeEvent XFocusInEvent;
26       typedef XFocusChangeEvent XFocusOutEvent;
27
28       When you receive these events, the structure members are set as fol‐
29       lows.
30
31       The type member is set to the event type constant name that uniquely
32       identifies it.  For example, when the X server reports a GraphicsExpose
33       event to a client application, it sends an XGraphicsExposeEvent struc‐
34       ture with the type member set to GraphicsExpose.  The display member is
35       set to a pointer to the display the event was read on.  The send_event
36       member is set to True if the event came from a SendEvent protocol
37       request.  The serial member is set from the serial number reported in
38       the protocol but expanded from the 16-bit least-significant bits to a
39       full 32-bit value.  The window member is set to the window that is most
40       useful to toolkit dispatchers.
41
42       The window member is set to the window on which the FocusIn or FocusOut
43       event was generated.  This is the window used by the X server to report
44       the event.  The mode member is set to indicate whether the focus events
45       are normal focus events, focus events while grabbed, focus events when
46       a grab activates, or focus events when a grab deactivates.  The X
47       server can set the mode member to NotifyNormal, NotifyWhileGrabbed,
48       NotifyGrab, or NotifyUngrab.
49
50       All FocusOut events caused by a window unmap are generated after any
51       UnmapNotify event; however, the X protocol does not constrain the
52       ordering of FocusOut events with respect to generated EnterNotify,
53       LeaveNotify, VisibilityNotify, and Expose events.
54
55       Depending on the event mode, the detail member is set to indicate the
56       notify detail and can be NotifyAncestor, NotifyVirtual, NotifyInferior,
57       NotifyNonlinear, NotifyNonlinearVirtual, NotifyPointer, NotifyPointer‐
58       Root, or NotifyDetailNone.
59

SEE ALSO

61       XAnyEvent(3), XButtonEvent(3), XCreateWindowEvent(3), XCircula‐
62       teEvent(3), XCirculateRequestEvent(3), XColormapEvent(3), XConfig‐
63       ureEvent(3), XConfigureRequestEvent(3), XCrossingEvent(3), XDestroyWin‐
64       dowEvent(3), XErrorEvent(3), XExposeEvent(3), XGraphicsExposeEvent(3),
65       XGravityEvent(3), XKeymapEvent(3), XMapEvent(3), XMapRequestEvent(3),
66       XPropertyEvent(3), XReparentEvent(3), XResizeRequestEvent(3), XSelec‐
67       tionClearEvent(3), XSelectionEvent(3), XSelectionRequestEvent(3), XUn‐
68       mapEvent(3), XVisibilityEvent(3)
69       Xlib - C Language X Interface
70
71
72
73X Version 11                     libX11 1.6.4             XFocusChangeEvent(3)
Impressum