XUngrabPointer(display, time)
      Display *display;
      Time time;


display Specifies the connection to the X server.
time Specifies the time. You can pass either a timestamp or CurrentTime.


The XUngrabPointer() function releases the pointer and any queued events if this client has actively grabbed the pointer from XGrabPointer(), XGrabButton(), or from a normal button press. XUngrabPointer() 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. It also generates EnterNotify and LeaveNotify events. The X server performs an UngrabPointer request automatically if the event window or confine_to window for an active pointer grab becomes not viewable or if window reconfiguration causes the confine_to window to lie completely outside the boundaries of the root window.

See also

XAllowEvents(), XChangeActivePointerGrab(), XGrabButton(), XGrabKey(), XGrabKeyboard(), XGrabPointer(), "Pointer Grabbing".
Christophe Tronche, [email protected]