xcb\_ungrab\_pointer(3) XCB Requests xcb\_ungrab\_pointer(3)

# [NAME](#NAME)

xcb\_ungrab\_pointer - release the pointer

# [SYNOPSIS](#SYNOPSIS)

**#include &lt;xcb/xproto.h&gt;**

## [Request function](#Request_function)

xcb\_void\_cookie\_t **xcb\_ungrab\_pointer**(xcb\_connection\_t \**conn*, xcb\_timestamp\_t *time*);

# [REQUEST ARGUMENTS](#REQUEST_ARGUMENTS)

[*conn*](#conn)

The XCB connection to X11.

[*time*](#time)

Timestamp to avoid race conditions when running X over the network.

The pointer will not be released if *time* is earlier than the last-pointer-grab time or later than the current X server time.

# [DESCRIPTION](#DESCRIPTION)

Releases the pointer and any queued events if you actively grabbed the pointer before using *xcb\_grab\_pointer*, *xcb\_grab\_button* or within a normal button press.

EnterNotify and LeaveNotify events are generated.

# [RETURN VALUE](#RETURN_VALUE)

Returns an *xcb\_void\_cookie\_t*. Errors (if any) have to be handled in the event loop.

If you want to handle errors directly with *xcb\_request\_check* instead, use *xcb\_ungrab\_pointer\_checked*. See [**xcb-requests(3)**](/man/os/libxcb/xcb-requests.3) for details.

# [ERRORS](#ERRORS)

This request does never generate any errors.

# [SEE ALSO](#SEE_ALSO)

[**xcb-requests**(3)](/man/os/libxcb/xcb-requests.3), [**xcb\_enter\_notify\_event\_t**(3)](/man/os/libxcb/xcb_enter_notify_event_t.3), [**xcb\_grab\_button**(3)](/man/os/libxcb/xcb_grab_button.3), [**xcb\_grab\_pointer**(3)](/man/os/libxcb/xcb_grab_pointer.3), [**xcb\_leave\_notify\_event\_t**(3)](/man/os/libxcb/xcb_leave_notify_event_t.3)

# [AUTHOR](#AUTHOR)

Generated from xproto.xml. Contact xcb@lists.freedesktop.org for corrections and improvements.

libxcb 1.17.0 X Version 11

---

Document: xcb_ungrab_pointer(3) from libxcb 1.17.0-r19 (Chainguard OS)
Source: https://gitlab.freedesktop.org/xorg/lib/libxcb.git
