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 DRAFTButton5Mask, ShiftMask, LockMask, ControlMask, Mod1Mask, Mod2Mask,Mod3Mask, Mod4Mask, Mod5Mask.The mode member is set to indicate whether the events are normal events, pseudo-motion eventswhen a grab activates, or pseudo-motion events when a grab deactivates. The Xserver can setthis member to NotifyNormal, NotifyGrab, or NotifyUngrab.The detail member is set to indicate the notify detail and can be NotifyAncestor, NotifyVirtual,NotifyInferior, NotifyNonlinear, or NotifyNonlinearVirtual.10.6.1. Normal Entry/Exit EventsEnterNotify and LeaveNotify events are generated when the pointer moves from one window toanother window. Normal events are identified by XEnterWindowEvent or XLeaveWindow-Event structures whose mode member is set to NotifyNormal.• When the pointer moves from window Atowindow Band A is an inferior of B, the Xserver does the following:−−−Itgenerates a LeaveNotify event on window A,with the detail member of theXLeaveWindowEvent structure set to NotifyAncestor.Itgenerates a LeaveNotify event on each window between window Aand windowB, exclusive, with the detail member of each XLeaveWindowEvent structure set toNotifyVirtual.Itgenerates an EnterNotify event on window B,with the detail member of the XEnterWindowEventstructure set to NotifyInferior.• When the pointer moves from window Atowindow Band B is an inferior of A, the Xserver does the following:−−−Itgenerates a LeaveNotify event on window A,with the detail member of theXLeaveWindowEvent structure set to NotifyInferior.Itgenerates an EnterNotify event on each window between window Aand windowB, exclusive, with the detail member of each XEnterWindowEvent structure set toNotifyVirtual.Itgenerates an EnterNotify event on window B,with the detail member of the XEnterWindowEventstructure set to NotifyAncestor.• When the pointer moves from window Atowindow Band window Cistheir least commonancestor, the X server does the following:−−−−Itgenerates a LeaveNotify event on window A,with the detail member of theXLeaveWindowEvent structure set to NotifyNonlinear.Itgenerates a LeaveNotify event on each window between window Aand windowC, exclusive, with the detail member of each XLeaveWindowEvent structure set toNotifyNonlinearVirtual.Itgenerates an EnterNotify event on each window between window Cand windowB, exclusive, with the detail member of each XEnterWindowEvent structure set toNotifyNonlinearVirtual.Itgenerates an EnterNotify event on window B,with the detail member of the XEnterWindowEventstructure set to NotifyNonlinear.• When the pointer moves from window Atowindow Bondifferent screens, the X serverdoes the following:209

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

Saved successfully!

Ooh no, something went wrong!