XUngrabPointer()XUngrabPointer()NameXUngrabPointer – release the pointer from an active grab.
Synopsis
XUngrabPointer(display, time)
Display *display;
Time time;
Arguments
display Specifies a connection to an X server; returned from
XOpenDisplay().
time Specifies the time when the grab should take place. Pass
either a timestamp, expressed in milliseconds, or the con‐
stant CurrentTime. If this time is earlier than the last-
pointer-grab time or later than current server time, the
pointer will not be grabbed.
DescriptionXUngrabPointer() releases an active grab on the pointer by the calling
client. It executes as follows:
· Releases the pointer and any queued events, if this client has
actively grabbed the pointer from XGrabPointer(), XGrabButton(), or
from a normal button press.
· Does not release the pointer if the specified time is earlier than
the last-pointer-grab time or is later than the current X server
time.
· Generates EnterNotify and LeaveNotify events.
The X server performs an XUngrabPointer() automatically if the
event_window or confine_to window (arguments of XGrabButton() and
XGrabPointer()) becomes not viewable, or if the confine_to window is
moved completely outside the root window.
For more information, see Volume One, Chapter 9, The Keyboard and
Pointer.
See AlsoXChangeActivePointerGrab(), XChangePointerControl(), XGetPointerCon‐
trol(), XGetPointerMapping(), XGrabPointer(), XQueryPointer(), XSet‐
PointerMapping(), XWarpPointer().
Xlib - Pointer XUngrabPointer()