Name
MappingNotify — xmapping
When Generated
A MappingNotify event is sent when any of
the following is changed by another client: the mapping between
physical keyboard keys (keycodes) and keysyms, the mapping between
modifier keys and logical modifiers, or the mapping between physical
and logical pointer buttons. These events are triggered by a call to
XSetModifierMapping() or
XSetPointerMapping(), if the return status is
MappingSuccess, or by any call to
XChangeKeyboardMapping().
This event type should not be confused with the event that
occurs when a window is mapped; that is a
MapNotify event. Nor should it be confused with
the KeymapNotify event, which reports the state
of the keyboard as a mask instead of as a keycode.
Select With
The X server sends MappingNotify events to
all clients. It is never selected and cannot be masked with the
window attributes.
XEvent Structure Name
typedef union _XEvent {
...
XMappingEvent xmapping;
...
} XEvent;Event Structure
typedef struct {
int type;
unsigned long serial; /* # of last request processed by server */
Bool send_event; /* True if this came from SendEvent request */
Display *display; /* Display the event was read from */
Window window; /* unused */
int request; /* one of MappingMapping, MappingKeyboard,
* MappingPointer */
int first_keycode; /* first keycode */
int count; /* range of change with first_keycode*/
} XMappingEvent;Event Structure Members
requestThe kind of mapping change that occurred:
MappingModifierfor a successfulXSetModifierMapping ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access