1XFocusChangeEvent(3X11) XLIB FUNCTIONS XFocusChangeEvent(3X11)
2
3
4
6 XFocusChangeEvent - FocusIn and FocusOut event structure
7
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
61 XAnyEvent(3X11), XButtonEvent(3X11), XCreateWindowEvent(3X11), XCircu‐
62 lateEvent(3X11), XCirculateRequestEvent(3X11), XColormapEvent(3X11),
63 XConfigureEvent(3X11), XConfigureRequestEvent(3X11),
64 XCrossingEvent(3X11), XDestroyWindowEvent(3X11), XErrorEvent(3X11),
65 XExposeEvent(3X11), XGraphicsExposeEvent(3X11), XGravityEvent(3X11),
66 XKeymapEvent(3X11), XMapEvent(3X11), XMapRequestEvent(3X11), XProper‐
67 tyEvent(3X11), XReparentEvent(3X11), XResizeRequestEvent(3X11), XSelec‐
68 tionClearEvent(3X11), XSelectionEvent(3X11), XSelectionRe‐
69 questEvent(3X11), XUnmapEvent(3X11), XVisibilityEvent(3X11)
70 Xlib - C Language X Interface
71
72
73
74X Version 11 libX11 1.0.3 XFocusChangeEvent(3X11)