XCrossingEvent - EnterNotify and LeaveNotify event structure
The structure for EnterNotify and LeaveNotify events contains:
typedef struct {
int type; EnterNotify or LeaveNotify
unsigned long serial; # of last request processed by server
Bool send_event; true if this came from a SendEvent request
Display *display; Display the event was read from
Window window; ``event'' window reported relative to
Window root; root window that the event occurred on
Window subwindow; child window
Time time; milliseconds
int x, y; pointer x, y coordinates in event window
int x_root, y_root; coordinates relative to root
int mode; NotifyNormal, NotifyGrab, NotifyUngrab
int detail; NotifyAncestor, NotifyVirtual, NotifyInferior,
NotifyNonlinear,NotifyNonlinearVirtual
Bool same_screen; same screen flag
Bool focus; boolean focus
unsigned int state; key or button mask
} XCrossingEvent;
typedef XCrossingEvent XEnterWindowEvent;
typedef XCrossingEvent XLeaveWindowEvent;