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 DRAFTXGrabButton (display, button, modifiers, grab_window, owner_events, event_mask,pointer_mode, keyboard_mode, confine_to, cursor)Display *display;unsigned int button;unsigned int modifiers;Window grab_window;Bool owner_events;unsigned int event_mask;int pointer_mode, keyboard_mode;Window confine_to;Cursor cursor;displaybuttonmodifiersgrab_windowowner_eventsevent_maskpointer_modekeyboard_modeconfine_tocursorSpecifies the connection to the X server.Specifies the pointer button that is to be grabbed or AnyButton.Specifies the set of keymasks or AnyModifier. The mask is the bitwise inclusiveOR of the valid keymask bits.Specifies the grab window.Specifies a Boolean value that indicates whether the pointer events are to bereported as usual or reported with respect to the grab window ifselected by theevent mask.Specifies which pointer events are reported to the client. The mask is the bitwiseinclusive OR ofthe valid pointer event mask bits.Specifies further processing of pointer events. You can pass GrabModeSync orGrabModeAsync.Specifies further processing of keyboard events. You can pass GrabModeSyncor GrabModeAsync.Specifies the window toconfine the pointer in or None.Specifies the cursor that is to be displayed or None.The XGrabButton function establishes a passive grab. Inthe future, the pointer is activelygrabbed (as for XGrabPointer), the last-pointer-grab time is set to the time at which the buttonwas pressed (as transmitted in the ButtonPress event), and the ButtonPress event is reported ifall of the following conditions are true:• The pointer is not grabbed, and the specified button is logically pressed when the specifiedmodifier keys are logically down, and no other buttons or modifier keys are logically down.• The grab_window contains the pointer.• The confine_to window (if any) is viewable.• A passive grab on the same button/key combination does not exist on any ancestor ofgrab_window.The interpretation of the remaining arguments is as for XGrabPointer. The active grab is terminatedautomatically when the logical state of the pointer has all buttons released (independent ofthe state of the logical modifier keys).Note that the logical state of a device (as seen by client applications) may lag the physical state ifdevice event processing is frozen.252

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

Saved successfully!

Ooh no, something went wrong!