XMapEvent(3X) XMapEvent(3X)
NAME
XMapEvent, XMappingEvent - structures for MapNotify and
MappingNotify events
DESCRIPTION
XMapEvent is a structure for MapNotify events. This struc-
ture is defined as follows.
typedef struct {
int type; /* MapNotify */
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 event;
Window window;
Bool override_redirect;/* boolean, is */
/* override set... */
} XMapEvent;
When this event is received, the structure members are set
as follows.
The type member is set to the event type constant name that
uniquely identifies it. For example, when the X server re-
ports a GraphicsExpose event to a client application, it
sends an XGraphicsExposeEvent structure with the type member
set to GraphicsExpose. The display member is set to a
pointer to the display the event was read on. The
send_event member is set to TRUE if the event came from a
SendEvent protocol request. The serial member is set from
the serial number reported in the protocol but expanded from
the 16-bit least-significant bits to a full 32-bit value.
The window member is set to the window that is most useful
to toolkit dispatchers, which, in this case, is the window
that was mapped.
The event member is set either to the window that was mapped
or to its parent, depending on whether StructureNotify or
SubstructureNotify was selected. The override_redirect
member is set to the
override-redirect attribute of the window. Window manager
clients normally should ignore this window if the override-
redirect attribute is TRUE, because these events usually are
generated from pop-ups, which override structure control.
XMappingEvent is a structure for MappingNotify events. This
structure is defined as follows.
November, 1990 1
XMapEvent(3X) XMapEvent(3X)
typedef struct {
int type; /* MappingNotify */
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; /* unused */
int request; /* one of MappingModifier, */
/* MappingKeyboard, */
/* MappingPointer */
int first_keycode;/* first keycode */
int count; /* defines range of */
/* change w. first_keycode*/
} XMappingEvent;
When this event is received, the structure members are set
as follows.
The type member is set to the event type constant name that
uniquely identifies it. For example, when the X server re-
ports a GraphicsExpose event to a client application, it
sends an XGraphicsExposeEvent structure with the type member
set to GraphicsExpose. The display member is set to a
pointer to the display the event was read on. The
send_event member is set to TRUE if the event came from a
SendEvent protocol request. The serial member is set from
the serial number reported in the protocol but expanded from
the 16-bit least-significant bits to a full 32-bit value.
The window member is set to the window that is most useful
to toolkit dispatchers.
The request member is set to indicate the kind of mapping
change that occurred and can be MappingModifier,
MappingKeyboard, MappingPointer. If it is MappingModifier,
the modifier mapping was changed. If it is MappingKeyboard,
the keyboard mapping was changed. If it is MappingPointer,
the pointer button mapping was changed. The first_keycode
and count members are set only if the request member was set
to MappingKeyboard. The number in first_keycode represents
the first number in the range of the altered mapping, and
count represents the number of keycodes altered.
SEE ALSO
XAnyEvent(3X), XButtonEvent(3X), XCreateWindowEvent(3X),
XCirculateEvent(3X), XCirculateRequestEvent(3X),
XColormapEvent(3X), XConfigureEvent(3X),
XConfigureRequestEvent(3X), XCrossingEvent(3X),
XDestroyWindowEvent(3X), XErrorEvent(3X), XExposeEvent(3X),
XFocusChangeEvent(3X), XGraphicsExposeEvent(3X),
XGravityEvent(3X), XKeymapEvent(3X), XMapRequestEvent(3X),
2 November, 1990
XPropertyEvent(3X), XReparentEvent(3X),
XResizeRequestEvent(3X), XSelectionClearEvent(3X),
XSelectionEvent(3X), XSelectionRequestEvent(3X),
XUnmapEvent(3X), XVisibilityEvent(3X)
Xlib - C Language Interface
November, 1990 3