12.07.2015 Views

Xlib − C Language X Interface

Xlib − C Language X Interface

Xlib − C Language X Interface

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Xlib</strong> − C LibraryX11, Release 6.7 DRAFTTo receive MapNotify events, set the StructureNotifyMask bit in the event-mask attribute ofthe window orthe SubstructureNotifyMask bit in the event-mask attribute of the parent window(in which case, mapping any child generates an event).The structure for this event type contains: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;The event member is set either to the window that was mapped or to its parent, depending onwhether StructureNotify or SubstructureNotify was selected. The window member is set tothe window that was mapped. The override_redirect member is set to the override-redirectattribute of the window. Window manager clients normally should ignore this window iftheoverride-redirect attribute is True, because these events usually are generated from pop-ups,which override structure control.10.10.7. MappingNotify EventsThe X server reports MappingNotify events to all clients. There is no mechanism to express disinterestin this event. The Xserver generates this event type whenever aclient application successfullycalls:• XSetModifierMapping to indicate which KeyCodes are to be used as modifiers• XChangeKeyboardMapping to change the keyboard mapping• XSetPointerMapping to set the pointer mappingThe structure for this event type contains: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;The request member is set to indicate the kind of mapping change that occurred and can be MappingModifier,MappingKeyboard, or MappingPointer. Ifitis MappingModifier, the221

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!