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 DRAFTmodifier 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 countmembers are set only if the request member was set to MappingKeyboard. The number infirst_keycode represents the first number in the range of the altered mapping, and count representsthe number of keycodes altered.To update the client application’s knowledge of the keyboard, you should call XRefreshKeyboardMapping.10.10.8. ReparentNotify EventsThe X server can report ReparentNotify events to clients wanting information about changing awindow’s parent. The Xserver generates this event whenever aclient application calls XReparentWindowand the window isactually reparented.To receive ReparentNotify events, set the StructureNotifyMask bit in the event-mask attributeof the window orthe SubstructureNotifyMask bit in the event-mask attribute of either the old orthe new parent window (in which case, reparenting any child generates an event).The structure for this event type contains:typedef struct {int type; /* ReparentNotify */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;Window parent;int x, y;Bool override_redirect;}XReparentEvent;The event member is set either to the reparented window ortothe old or the new parent, dependingon whether StructureNotify or SubstructureNotify was selected. The window member isset to the window that was reparented. The parent member is set to the new parent window. Thexand y members are set to the reparented window’s coordinates relative to the new parent window’sorigin and define the upper-left outer corner of the reparented window. The override_redirectmember is set to the override-redirect attribute of the window specified by the window member.Window manager clients normally should ignore this window ifthe override_redirect memberis True.10.10.9. UnmapNotify EventsThe X server can report UnmapNotify events to clients wanting information about which windowsare unmapped. The X server generates this event type whenever aclient applicationchanges the window’s state from mapped to unmapped.To receive UnmapNotify 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, unmapping any child window generates an event).The structure for this event type contains:222

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

Saved successfully!

Ooh no, something went wrong!